Change File Name in Word Save Dialog Box

W

Wayne Herbert

After creating a document, I cause the save dialog to be displayed
with the following code:

if Word.ActiveDocument.Saved = false then // save with prompt
Word.Documents.Save(OleVar, OleVar2);

How can I set the file name in this save dialog to a name of my own
choosing rather than the default name that shows up?

Thank you.
 
C

Chad DeMeyer

With Word.Dialogs(Word.wdDialogFileSaveAs)
.Name = sName 'sName = 'name of your choosing'
.Show
End With

Regards,
Chad
 

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