BIGTONE559
Active Member
- Joined
- Apr 20, 2011
- Messages
- 336
Is there an event than can be used to run a macro when a user attempts to switch pages?
I currently have a code but when i change sheets it runs on the active sheet when i would want it to run on the sheet that I switched from. . .
I currently have a code but when i change sheets it runs on the active sheet when i would want it to run on the sheet that I switched from. . .
Code:
Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
If IsEmpty(Range("J1")) Then
MsgBox ("Please Check the Date Prior to Switching Pages")
End If
End Sub