Hi,
I have a macro (code below) that runs when a button is pressed. It opens up the save as dialog box and restricts the save as type to marco-enabled workbooks.
Sub save()
varWorkbookName = Application.GetSaveAsFilename( _
fileFilter:="Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
End Sub
My issue is that the save as box is by default in the My Documents folder but I would like this to open in a folder of my choosing. Is there a way I can edit the above code so that the save as box opens in the folder I would like?
Thanks, Reece
I have a macro (code below) that runs when a button is pressed. It opens up the save as dialog box and restricts the save as type to marco-enabled workbooks.
Sub save()
varWorkbookName = Application.GetSaveAsFilename( _
fileFilter:="Excel Macro-Enabled Workbook (*.xlsm), *.xlsm")
End Sub
My issue is that the save as box is by default in the My Documents folder but I would like this to open in a folder of my choosing. Is there a way I can edit the above code so that the save as box opens in the folder I would like?
Thanks, Reece
Last edited: