Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If Not SaveAsUI Then
'
' do stuff
'
End If
End Sub
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If Not SaveAsUI Then
'
' do stuff for Save
'
Else
'
' do Stuff for SaveAs
'
End If
End Sub
Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Call Sub1
If SaveAsUI Then
SaveAS_Check = True
End If
End Sub
Sub Workbook_AfterSave(ByVal Success As Boolean)
If SaveAS_Check = True Then
Call Sub2
SaveAS_Check = False
End If
End Sub