VBA window activate events occur when the user activates a window, either by opening it or by making it the frontmost window.
The BeforeActivate event occurs before any Microsoft Dynamics GP application code runs for the window activate event. The AfterActivate event occurs after any Microsoft Dynamics GP application code runs for the window activate event.
Microsoft Dynamics GP rarely executes application code during a window activate event. Therefore, whether you choose the BeforeActivate or AfterActivate event may be of little consequence.