Table of contents
TOC
Collapse the table of content
Expand the table of content

FileDialog Members (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Provides file dialog box functionality similar to the functionality of the standard Open and Save dialog boxes found in Microsoft Office applications.

Provides file dialog box functionality similar to the functionality of the standard Open and Save dialog boxes found in Microsoft Office applications.

Methods

NameDescription
ExecuteCarries out a user's action right after the Show method is invoked.
ShowDisplays a file dialog box and returns a Long indicating whether the user pressed the Action button (-1) or the Cancel button (0). When you call the Show method, no more code executes until the user dismisses the file dialog box. In the case of Open and SaveAs dialog boxes, use the Execute method right after the Show method to carry out the user's action.

Properties

NameDescription
AllowMultiSelectIs True if the user is allowed to select multiple files from a file dialog box. Read/write.
ApplicationGets an Application object that represents the container application for the FileDialog object (you can use this property with an Automation object to return that object's container application). Read-only.
ButtonNameSets or gets a String representing the text that is displayed on the action button of a file dialog box. Read/write.
CreatorGets a 32-bit integer that indicates the application in which the FileDialog object was created. Read-only.
DialogTypeGets an MsoFileDialogType constant representing the type of file dialog box that the FileDialog object is set to display. Read-only.
FilterIndexGets or sets a Long indicating the default file filter of a file dialog box. The default filter determines which types of files are displayed when the file dialog box is first opened. Read/write.
FiltersGets a FileDialogFilters collection. Read-only.
InitialFileNameSet or returns a String representing the path or file name that is initially displayed in a file dialog box. Read/write.
InitialViewGets or sets an MsoFileDialogView constant representing the initial presentation of files and folders in a file dialog box. Read/write.
ItemGets the text associated with an object. Read-only.
ParentGets the Parent object for the FileDialog object. Read-only.
SelectedItemsGets a FileDialogSelectedItems collection. This collection contains a list of the paths of the files that a user selected from a file dialog box displayed using the Show method of the FileDialog object. Read-only.
TitleSets or gets the title of a file dialog box displayed using the FileDialog object. Read/write.
© 2018 Microsoft