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 / March 2006

Tip: Looking for answers? Try searching our database.

Dialogue for Save As

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David C - 20 Mar 2006 17:10 GMT
How [from VB] do I force the default folder in the 'Save As' dialogue to be a
particulr folder;  we are changing our corporate servers, and wish to save
all new and edited Word docs to the new server folders, without the faff of
searching to unfamiliar roots and branches on the networks every time, to
find the new server.

Or is there a VB way to open the SaveAs dialogue and prompt with the new
folder?
Helmut Weber - 20 Mar 2006 17:18 GMT
Hi David,

how about this:

Dim oDlg As Dialog
Set oDlg = Dialogs(wdDialogFileSaveAs)
oDlg.Name = "c:\test\"
oDlg.Show

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

David C - 21 Mar 2006 10:49 GMT
Thanks - I will try it now.  

> Hi David,
>
[quoted text clipped - 4 lines]
> oDlg.Name = "c:\test\"
> oDlg.Show
David C - 21 Mar 2006 11:21 GMT
Works a treat, thanks

I used oDlg.Name = "c:\test\" & filename to offer a default name too.

Very grateful,
David C

> Hi David,
>
[quoted text clipped - 4 lines]
> oDlg.Name = "c:\test\"
> oDlg.Show
 
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.