Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dialogs(wdDialogFileSaveAs).Show

587 views
Skip to first unread message

Mark Orenstein

unread,
Mar 13, 2001, 10:28:51 PM3/13/01
to
I am using Dialogs(wdDialogFileSaveAs).Show in a macro and would like to
prefill the SaveIn directory in the dialog box to be something other the My
Documents. I have tried ChangeFileOpenDirectory and ChDir, but neither
seems to cause the directory that I want (c:\LegalForms\Data) to
consistently appear.

Any help would be appreciated. I have little knowledge of VBA.

Mark


Mark Tangard

unread,
Mar 14, 2001, 6:31:30 AM3/14/01
to

If you want c:\LegalForms\Data to be the default SaveIn directory
always, you can just change it manually (once) in Tools-> Options->
File Locations-> Documents.

If you want to change it programmatically for each session, you
can use code like:

Options.DefaultFilePath(Path:=wdDocumentsPath) = "c:\LegalForms\Data"

-- Mark Tangard <mtan...@pacbell.net> ----------------------------
----------- "Life is nothing if you aren't obsessed." --John Waters
-------------------------------------------------------------------

ibby

unread,
Mar 14, 2001, 6:42:14 AM3/14/01
to
Hi Mark,

> I am using Dialogs(wdDialogFileSaveAs).Show in a macro and would like to
> prefill the SaveIn directory in the dialog box to be something other the
My
> Documents. I have tried ChangeFileOpenDirectory and ChDir, but neither
> seems to cause the directory that I want (c:\LegalForms\Data) to
> consistently appear.


With Dialogs(wdDialogFileSaveAs)
.Name = "C:\LegalForms\Data\"
.Show
End With


--
Hope this helps.
ibby

Please post replies or follow-ups to the **newsgroup** so that participants
may benefit or contribute.


Mark Orenstein

unread,
Mar 14, 2001, 7:53:48 PM3/14/01
to
Ibby - Many thanks, it was just what I needed. Where is this stuff
documented?


ibby

unread,
Mar 15, 2001, 12:44:40 AM3/15/01
to
Hi Mark,

> Ibby - Many thanks, it was just what I needed. Where is this stuff
> documented?

In the newsgroups ;-)


--

0 new messages