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 / November 2005

Tip: Looking for answers? Try searching our database.

Save As Dialog file name and location

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rburghardt@yahoo.com - 03 Nov 2005 15:36 GMT
The following code will not default the Save As dialog box to the C:\
directory.  The "fred.doc" filename appears correctly, but the
directory is not correct.

   With Dialogs(wdDialogFileSaveAs)
       .Name = "C:\fred.doc"
       .Format = wdFormatDocument
       .Show
   End With

Interestingly, if I use .Name = "C:\" and leave off the file name, the
directory in the Save As dialog box is correct.  The problem only
occurs when both the file name and directory are used in the .Name
property.

Am I doing something wrong?  Using Word 2003 SP2.

Thanx in advance!
Vishal Chopra - 03 Nov 2005 16:07 GMT
Hi
I tried the same code.
But for me it saved worked correct.
i even gave different path in the .name
and it always gave the dialog box with the correct path and the name of the
document also appeared correctly

regards
Vishal

> The following code will not default the Save As dialog box to the C:\
> directory.  The "fred.doc" filename appears correctly, but the
[quoted text clipped - 14 lines]
>
> Thanx in advance!
rburghardt@yahoo.com - 03 Nov 2005 16:16 GMT
Thanx Vishal.....are you also using Word 2003 SP2?
Charles Kenyon - 03 Nov 2005 20:19 GMT
I just tried your code and it worked fine. Word 2003 SP1

By the way, I hope this example is abbreviated. There is no way you want to
be saving files to your C: root directory. It gets overly clutterd as it is.
Signature

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

> The following code will not default the Save As dialog box to the C:\
> directory.  The "fred.doc" filename appears correctly, but the
[quoted text clipped - 14 lines]
>
> Thanx in advance!
rburghardt@yahoo.com - 04 Nov 2005 19:19 GMT
No, the example I gave is just a sample of some code that isn't
working.  I got the code down to this little snippet and it wasn't
working properly.  I wonder if it's something that broke in SP2???

Rate this thread:






 
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.