Hey all,
Trying to make a command button that saves the workbook and then closes.
I have this code and it works somewhat. I want to save and close without the save dialog popping up asking is I want to save the changes, as the workbook has already been saved in the macro. Is there a way around this?
Thanks,
Pujo
Trying to make a command button that saves the workbook and then closes.
I have this code and it works somewhat. I want to save and close without the save dialog popping up asking is I want to save the changes, as the workbook has already been saved in the macro. Is there a way around this?
Thanks,
Pujo
Code:
Private Sub CommandButton2_Click()
ActiveWorkbook.Save
Application.Quit
End Sub