Returns the full path to the selected file.
|componentObj||One of the user forms components listed in the Applies To section|
The property applies to the following components:
FileName property returns the name and directory path of the file that is selected in the dialog. If the ofAllowMultiSelect option is enabled then this property returns the path to the file that was selected last. To get the whole list of the selected file use the
A string value that contains the full path to the last selected file.
If the user closes the dialog with the Cancel button, the
FileName property restores the value it had before the dialog was displayed.