Need Save As Dialog Box

  • Thread starter Thread starter Justin Philips
  • Start date Start date
I think you can do:

fname = Application.Dialogs(xlDialogSaveAs).Show
 
Just some added information:

fname would contain True or False based on whether the Save was successful
or not. It would not contain the name/new name of the file.
 
If you want more control, use
fname = Application.GetSaveAsFilename()

set the help on that function for arguments you can pass to the name.

Not that it does not perform the save. You can evaluate the user's choice
and then execute a
thisworkbook.SaveAs fName

if you agree.
 

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

Back
Top