Occurs when a folder is opened or closed within a file-selection dialog.
Declaration
Sender | [in] | Required | Variant |
Applies To
The event applies to the following components:
Description
The OnFolderChange
event occurs upon changing a directory whose contents are displayed in the dialog. This can happen when the user double-clicks on a directory, clicks the Up One Level or Go To Last Folder Visited buttons at the top of the dialog, clicks on the places bar item, or uses the list box at the top of the dialog to navigate through the directory structure. You can create an event handler for this event to perform specific actions when the current folder changes.
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 folder is changed, events occur in the following order:
OnSelectionChange
OnFolderChange
See Also
Handling Events in User Forms
OnSelectionChange Event
OnTypeChange Event