Application.GetSaveAsFilename()

gustaf111

Board Regular
Joined
Sep 6, 2011
Messages
120
Hello,

I hope anybody se thsi and know the answer!

I would like to open the SaveAs dialg from vba and have the save options as I chose SaveAs from the meny ...

fileSaveName = Application.GetSaveAsFilename()
This does not open the SaveAS dialog with all options ...

please help!
Gustaf
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Application.Dialogs(xlDialogSaveAs).Show
 
Upvote 0
The second one :)

The first one, I get an error message

Where did you paste this code?

Did you start the procedure with a procedure name and end it correctly:

Code:
Sub TestProcedure()
  Application.Dialogs(xlDialogSaveAs).Show 
End Sub

Then run this procedure.
 
Upvote 0
Set fileSaveName = Application.FileDialog(msoFileDialogSaveAs)
fileSaveName.FilterIndex = 2 'select to save with a ".xlsm" extension
fileSaveName.Show
fileSaveName.Execute

This code works, but the tools options are not there :(
 
Upvote 0

Forum statistics

Threads
1,225,678
Messages
6,186,399
Members
453,352
Latest member
OrionF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top