Share via


OpenFormat Property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

WdOpenFormat

WdOpenFormat can be one of these WdOpenFormat constants.
wdOpenFormatAllWord
wdOpenFormatAuto
wdOpenFormatDocument
wdOpenFormatEncodedText
wdOpenFormatRTF
wdOpenFormatTemplate
wdOpenFormatText
wdOpenFormatUnicodeText
wdOpenFormatWebPages

expression.OpenFormat

expression   Required. An expression that returns a FileConverter object.

Example

This example displays the unique format value and the format name for the converters you can use to open documents.

  For Each fc In FileConverters
    If fc.CanOpen = True Then _
        MsgBox fc.OpenFormat & vbCr & fc.FormatName
Next fc

This example opens the file named "Data.wp" by using the WordPerfect 6x file converter.

  Documents.Open FileName:="C:\Data.wp", _
    Format:=FileConverters("WordPerfect6x").OpenFormat