Typically, you set the window’s EventMode property using the Visual Basic Properties window. You can also set it through an event procedure, as shown in the following example:
Private Sub Window_BeforeOpen(OpenVisible As Boolean) If CustomerMaintenance.Caption = ".CustomerMaintenance" Then 'This is a modified window. Shut off VBA events for this user CustomerMaintenance.EventMode = emOriginalOnly End If End Sub