Hello -
I have a simple Workbook_Open macro (in the ThisWorkbook module) as follows:
I get inconsistent behavior when opening the workbook. Normally on the first open attempt, the Workbook_Open macro does not run. However, on the second attempt, the macro runs. Has anyone seen this before? Thanks in advance for any thoughts on a remedy.
I have a simple Workbook_Open macro (in the ThisWorkbook module) as follows:
Code:
Private Sub Workbook_Open()
' Ensure that calculations and screen updating are ON
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
' Leave workbook in working state if last save was in debug mode
If Range("DEBUG_FLAG").Value = False Then
Call Set_Defaults
End If
' Default Migrate Flag to false so that regular processing can commence
Range("MIGRATE_FLAG").Value = False
End Sub
I get inconsistent behavior when opening the workbook. Normally on the first open attempt, the Workbook_Open macro does not run. However, on the second attempt, the macro runs. Has anyone seen this before? Thanks in advance for any thoughts on a remedy.