I have a code in my "current" workbook that close "other" workbook. However that "other" workbook has a code that when you close it, a code will be executed.
What I want is that when I run the code from my "current" workbook, it will bypass or ignore the code of another workbook.
Current Workbook Code:
NewName = "v10.0_" & Left(CurFile, Len(CurFile) - 5)
pseudo = "'"
MacroName = "Workbook_BeforeClose"
Call SaveAs(wbk_r, NewName, FolderPath) 'Save the file to destination folder
Application.Run pseudo & NewName & "'!" & MacroName & ".xlsm", Cancel
Other Workbook Code: '''
Private Sub Workbook_BeforeClose(Cancel As Boolean)
If MsgBox("All data input will be permanently saved in the file database! Are you sure for your update?", vbYesNo) = vbNo Then
Exit Sub
Else
Call SaveChangesA
ThisWorkbook.Saved = True
End If
End Sub
'''