Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

path to remote server in VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger Marrs - 09 Jan 2006 16:51 GMT
The folder where I'd like to save a document is located on a remote server
that is accessed via Windows terminal services.  When working with a server
on my local network, I can access the folder I want with the following code:

Dim FSO As FileSystemObject
Dim NewDir As String

   Set FSO = CreateObject("Scripting.FileSystemObject")

   NewDir = "\\lvco-dc\prosecutor\CaseDocs\" & CaseNumber

   If Not FSO.FolderExists(NewDir) Then
       FSO.CreateFolder NewDir
   End If

With Dialogs(wdDialogFileSaveAs)
   .Name = "\\lvco-dc\prosecutor\CaseDocs\" & CaseNumber & "\" &
DocFileName
   .Show
End With

Is it possible to accomplish the same end result when the destination folder
is accessed through terminal services?

Roger
Roger Marrs - 10 Jan 2006 17:38 GMT
Never mind, I think I figured out how to handle this so it's not an issue.

> The folder where I'd like to save a document is located on a remote server
> that is accessed via Windows terminal services.  When working with a server
[quoted text clipped - 21 lines]
>
> Roger
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.