Application GetOpenFilename Method Method

Purpose

Displays the standard Open dialog box and gets a file name from the user without actually opening any files.

Syntax

GetOpenFilename(FileFilter, FilterIndex, Title, ButtonText, MultiSelect)

Optional Parameters

FileFilter

A string specifying file filtering criteria.

FilterIndex

Specifies the index numbers of the default file filtering criteria, from 1 to the number of filters specified in FileFilter. If this argument is omitted or greater than the number of filters present, the first file filter is used.

Title

Specifies the title of the dialog box. If this argument is omitted, the title is "Open."

ButtonText

Macintosh only.

MultiSelect

True to allow multiple file names to be selected. False to allow only one file name to be selected. The default value is False.