Hi,
You can try something like this
Add this to This Workbook section
And this to your module section:![]()
Public SaveWtihoutMacro As Boolean Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) If SaveWithoutMacro = True Then Cancel = True Else End If End Sub
![]()
Sub Your_Button_Code() SaveWithoutMacro = False 'Your code to saving goes here SaveWithoutMacro = True End Sub
Bookmarks