Hi All
I have a simple msgbox macro which is called upon each time a worksheet is activated. Users could select any worksheet in any particular order at any given time. Currently, the message box appears several times over should the user interchange between different sheets in the workbook. What I would like to be able to do, is restrict the macro containing the msgbox appearing from appearing again after one occurrence in the entire workbook. Help would be appreciated. Am I able to define the macro itself as variable so it only loops once?
Private Sub Worksheet_Activate()
Call MsgBox_Governance
End Sub
Sub MsgBox_Governance()
MsgBox "Governance:" & vbCrLf & vbCrLf & _
"Please ensure sign-off is obtained before proceeding", vbInformation, "User Information"
End Sub
Best, Mizogy
I have a simple msgbox macro which is called upon each time a worksheet is activated. Users could select any worksheet in any particular order at any given time. Currently, the message box appears several times over should the user interchange between different sheets in the workbook. What I would like to be able to do, is restrict the macro containing the msgbox appearing from appearing again after one occurrence in the entire workbook. Help would be appreciated. Am I able to define the macro itself as variable so it only loops once?
Private Sub Worksheet_Activate()
Call MsgBox_Governance
End Sub
Sub MsgBox_Governance()
MsgBox "Governance:" & vbCrLf & vbCrLf & _
"Please ensure sign-off is obtained before proceeding", vbInformation, "User Information"
End Sub
Best, Mizogy