Hi guys,
Could someone take a look at this. It was working the other day and isn't today. The goal is to prompt the user with a msgbox if they want to save. On yes it brings up the save as box. It then saves the file if a name is provided. If they hit cancel it just ends the if statements.
Could someone take a look at this. It was working the other day and isn't today. The goal is to prompt the user with a msgbox if they want to save. On yes it brings up the save as box. It then saves the file if a name is provided. If they hit cancel it just ends the if statements.
Code:
Dim slotsavemsg As Integer
slotsavemsg = MsgBox("Would you like to save your Slot Analysis?", vbYesNo, "Slot Analysis Save")
If slotsavemsg = vbYes Then
filesavename = Application.GetSaveAsFilename(filefilter:=("Microsoft Office Excel Workbook (*.xls), *.xls"))
If filesavename = Not (False) Then
ActiveWorkbook.SaveAs filename:=filesavename, FileFormat:=xlNormal
Else
End If
End If