Occurs upon changing a list of file names that is displayed by a file-selection dialog.
Declaration
Sender | [in] | Required | Variant |
Applies To
The event applies to the following components:
Description
The OnSelectionChange
event occurs when the user does something to change the list displayed in the dialog. This can include opening the file-selection dialog, highlighting a file or directory, selecting a new filter, selecting a new directory, or creating a new folder.
For more information on how to create event handlers for user form components, see Handling Events in User Forms.
Parameters
The event has the following parameter:
Sender
Remarks
When the dialog is opened, events occur in the following order:
OnShow
OnSelectionChange
OnFolderChange
When the new file-filter is chosen, events occur in the following order:
OnSelectionChange
OnTypeChange
When the folder is changed, events occur in the following order:
OnSelectionChange
OnFolderChange
See Also
Handling Events in User Forms
OnFolderChange Event
OnTypeChange Event