Using Save As in a Macro

D

dave

Is there a way to include a "Save as" command in a macro
which will prompt the user to enter a file name and then
proceed running the macro. I can set up the macro to save
the file with a predetermined name, but want to be
prompted for a name? (I'm using Word 97)
 
R

Rick Stebbins

Look into help for programming the Dialog object, i.e.
Word.Dialogs(wdDialogFileSaveAs)
 
G

Graham Mayor

How about

sfilename = InputBox("Enter Filename", "Save File")
ActiveDocument.SaveAs (sfilename)


--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.dsl.pipex.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

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