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

FileConverter.CanOpen Property (PowerPoint)

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

True if the specified file converter is designed to open files. Read-only Boolean.

Syntax

expression. CanOpen

expression A variable that represents a FileConverter object.

Remarks

The CanSave property returns True if the specified file converter can be used to save (export) files.

Example

This example determines whether the first file converter is able to open files.

If FileConverters(1).CanOpen = True Then

    MsgBox FileConverters(1).FormatName &; " can open files"

End If

Note Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

This example determines whether the WordPerfect6x file converter can be used to open files. If the CanOpen property returns True, a document named "Test.wp" is opened.

If FileConverters("WordPerfect6x").CanOpen = True Then
    Documents.Open FileName:="C:\Test.wp", _
        Format:=FileConverters("WordPerfect6x").OpenFormat
End If

See also

Concepts

FileConverter Object

© 2018 Microsoft