CanSave Property Example

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.

If Application.FileConverters("WordPerfect6x").CanSave = True Then
    num = Application.FileConverters("WordPerfect6x").SaveFormat
    ActiveDocument.SaveAs FileName:="C:\Document.wp", _
        FileFormat:=num
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