Discussion:
Save As Dialog file name and location
(too old to reply)
r***@yahoo.com
2005-11-03 14:36:55 UTC
Permalink
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
2005-11-03 15:07:05 UTC
Permalink
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
Post by r***@yahoo.com
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!
r***@yahoo.com
2005-11-03 15:16:08 UTC
Permalink
Thanx Vishal.....are you also using Word 2003 SP2?
Charles Kenyon
2005-11-03 19:19:14 UTC
Permalink
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

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.
Post by r***@yahoo.com
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!
r***@yahoo.com
2005-11-04 18:19:24 UTC
Permalink
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???
Continue reading on narkive:
Loading...