I am setting up this macro to automatically bring up the Save-As box upon opening.
Here is the code I have:
To test it I just have it going to a button and as of now, the box will come up and go to the correct folder, I can type the filename I want, but when I hit save it seems to just exit out and not do anything. The workbook name does not change and the file is not saved (from what I can tell).
So what am I missing here???
The cancel message box is working correctly.
Thanks yet again.
Here is the code I have:
Code:
Application.DisplayAlerts = False
template_file = ActiveWorkbook.FullName
fileSaveName = Application.GetSaveAsFilename( _
InitialFileName:="S:\SERVICE\Shop Teardown Reports\Job-Number teardown" & ".xls", _
fileFilter:="Microsoft Office Excel Workbook (*.xls), *.xls")
If fileSaveName = False Then MsgBox "Save-As has been cancelled!"
Exit Sub
Application.DisplayAlerts = True
To test it I just have it going to a button and as of now, the box will come up and go to the correct folder, I can type the filename I want, but when I hit save it seems to just exit out and not do anything. The workbook name does not change and the file is not saved (from what I can tell).
So what am I missing here???
The cancel message box is working correctly.
Thanks yet again.