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

FileConverter.CanSave Property (PowerPoint)

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

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

Syntax

expression. CanSave

expression A variable that represents a FileConverter object.

Remarks

The CanOpen property returns True if the specified file converter can be used to open (import) files.

Example

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

This example determines whether the WordPerfect converter can be used to save files. If the return value is True, the active document is saved in WordPerfect 6.x format.

Dim lngSaveFormat As Long

If Application.FileConverters("WordPerfect6x").CanSave = _
        True Then

    lngSaveFormat = _
        Application.FileConverters("WordPerfect6x").SaveFormat

    ActiveDocument.SaveAs FileName:="C:\Document.wp", _
        FileFormat:=lngSaveFormat

End If

This example displays a message that indicates whether the third converter in the FileConverters collection can save files.

If FileConverters(3).CanSave = True Then

    MsgBox FileConverters(3).FormatName &; " can save files"

Else

    MsgBox FileConverters(3).FormatName &; " cannot save files"

End If

See also

Concepts

FileConverter Object

© 2018 Microsoft