Compartilhar via


_Application.FileDialog Property

Returns a FileDialog object representing an instance of the file dialog.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property FileDialog ( _
    fileDialogType As MsoFileDialogType _
) As FileDialog
    Get
'Usage
Dim instance As _Application
Dim fileDialogType As MsoFileDialogType
Dim value As FileDialog

value = instance.FileDialog(fileDialogType)
FileDialog this[
    MsoFileDialogType fileDialogType
] { get; }

Parameters

  • fileDialogType
    Type: Microsoft.Office.Core.MsoFileDialogType

    Required MsoFileDialogType. The type of file dialog.

    MsoFileDialogType can be one of these MsoFileDialogType constants:

    msoFileDialogFilePicker Allows user to select a file.

    msoFileDialogFolderPicker Allows user to select a folder.

    msoFileDialogOpen Allows user to open a file.

    msoFileDialogSaveAs Allows user to save a file.

Property Value

Type: Microsoft.Office.Core.FileDialog

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace