Occurs upon closing a component.
The event applies to the following components:
OnClose event occurs when the dialog is closed. You can create an event handler for the
OnClose event to perform specific actions upon closing a dialog.
For more information on how to create event handlers for user form components, see Handling Events in User Forms.
The event has the following parameter: