Several dialog boxes open at various times throughout Dynamics GP. Some of these dialogs are hard to understand while others are simply a nuisance. Using VBA, you can change the text of a dialog, automatically answer the dialog before it is presented, or monitor your user's response to a dialog.
The BeforeModalDialog event is a window event that executes when a modal dialog opens but before it is visible to the user. This event is useful if you want to change the wording of a dialog or automatically answer it. You could also complete other actions based on which dialog was being displayed, such as setting the value of variables.
You can have a lot of fun with this event by customizing dialogs for individual users.
The following dialog is a prime candidate for you to dismiss using this event:
The following code will check the text of the dialog, and if it matches, will automatically push the Add button. The Batch Entry window will open and the user will never...