I'm currently using a keybind to suppress messages about document inspector and then save using the following code
Within the BeforeSave event, neither sheetcodename.activate nor application.goto sheetcodename.range("A1") will work to force the user to save on the specified sheet (Activesheet will not change either). However, when using the normal way to save the code will work correctly.
I'm stumped on this so any help you can provide would be greatly appreciated.
Code:
Sub Remove_Information_Save() 'Macro Activates when CTRL+S is used
Application.DisplayAlerts = False
ActiveWorkbook.RemovePersonalInformation = True
ActiveWorkbook.Save
Application.DisplayAlerts = True
End Sub
Within the BeforeSave event, neither sheetcodename.activate nor application.goto sheetcodename.range("A1") will work to force the user to save on the specified sheet (Activesheet will not change either). However, when using the normal way to save the code will work correctly.
I'm stumped on this so any help you can provide would be greatly appreciated.