Skip to content

Latest commit

 

History

History
96 lines (55 loc) · 1.65 KB

PowerPoint.Application.FileDialog.md

File metadata and controls

96 lines (55 loc) · 1.65 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Application.FileDialog property (PowerPoint)
vbapp10.chm502046
vbapp10.chm502046
PowerPoint.Application.FileDialog
0f0d5b6c-e478-6d15-7218-be04df978d6b
06/08/2017
medium

Application.FileDialog property (PowerPoint)

Returns a FileDialog object that represents a single instance of a file dialog box. Read-only.

Syntax

expression. FileDialog( _Type_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Type Required MsoFileDialogType The type of dialog to return.

Return value

FileDialog

Remarks

The value of the Type parameter can be one of these MsoFileDialogType constants.

msoFileDialogFilePicker
msoFileDialogFolderPicker
msoFileDialogOpen
msoFileDialogSaveAs

Example

This example displays the Save As dialog box.

Sub ShowSaveAsDialog()

    Dim dlgSaveAs As FileDialog

    Set dlgSaveAs = Application.FileDialog( _
        Type:=msoFileDialogSaveAs)

    dlgSaveAs.Show

End Sub

This example displays the Open dialog box and allows a user to select multiple files to open.

Sub ShowFileDialog()

    Dim dlgOpen As FileDialog

    Set dlgOpen = Application.FileDialog( _
        Type:=msoFileDialogOpen)

    With dlgOpen
        .AllowMultiSelect = True
        .Show
    End With

End Sub

See also

Application Object

[!includeSupport and feedback]