Save As Dialog file name and location

R

rburghardt

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!
 
V

Vishal Chopra

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
 
C

Charles Kenyon

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.
--
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


--------- --------- --------- --------- --------- ---------
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.
 
R

rburghardt

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???
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top