Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
Im trying to create a macro that opens the file save as window with a prefilled fill name and file format and allows me to save the file when I click on the save button in the save as window. The save as window opens, but when I click save the window closes and the file is not saved. Below is the code. Any suggestions are greatly appreciated. Private Sub CommandButton2_Click() Dim fileSaveName As String fileSaveName = Application.GetSaveAsFilename( _ InitialFileName:=Range("B1").Value, _ FileFilter:="Excel Macro-Enabled Workbook (*.xlsm), *.xlsm") End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need simple prompt to save at end of macro | Excel Programming | |||
save prompt for user exit, but no save prompt for batch import? | Excel Discussion (Misc queries) | |||
How to CANCEL file SAVE PROMPT when MACRO is running? | Excel Discussion (Misc queries) | |||
CLOSE ALL macro for XL2K (but with prompt to save for each file)? | Excel Programming | |||
Can a MACRO prompt for the filename to open and/or save? | Excel Programming |