Word 2000+ SaveAs Dialog

  • Thread starter Carolyn Speakman
  • Start date
C

Carolyn Speakman

Is there any way to get a SaveAs dialog in VBA for Word 2000 and above? I was using
With Application.FileDialog(msoFileDialogSaveAs)
.InitialFileName = filesavename
.Title = "Save As"
fileSaveFlag = .Show
.Execute
End With
But it only works for Word 2003. Also as above, I'd like to specify the filename.

Any help would be great,
Carolyn
 
J

Jonathan West

Hi Carolyn,

The FileDialog object was new in Office 2003. For Office 2000, try this,
which
should also work for XP and 2003

With Dialogs(wdDialogFileSaveAs)
.Name = filesavename
fileSaveFlag = .Show
End With
 
C

Cindy

Hi Jonathan,

Do you know how to set the Save As path to be the Document Path in File
Locations?

Cindy
 
J

Jonathan West

Cindy said:
Hi Jonathan,

Do you know how to set the Save As path to be the Document Path in File
Locations?

Hi Cindy,

Yes, put this line of code just before you open the Save As dialog

ChDir Dialogs(wdDialogToolsOptionsFileLocations).Setting
 

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