I have two Excel file, the first one has no macro on it and the second one has a macro on it. First, i open the spreadsheet which has no macro on it. Then I open the second excel which has a macro on it. Now if I hit the X sign on the top right corner to close my first spreadsheet then it closes then it invokes the following macro of another spreadsheet. Means it force to close another spreadsheet which has following macro on it.
How can I stop to invoke the following sub upon closing the first spreadsheet?
Private Sub Workbook_BeforeClose(cancel As Boolean)
End Sub
How can I stop to invoke the following sub upon closing the first spreadsheet?
Private Sub Workbook_BeforeClose(cancel As Boolean)
End Sub