DefaultOpenFormat Property
OpenFormat
WdOpenFormat can be one of these WdOpenFormat constants. |
wdOpenFormatAllWord |
wdOpenFormatAuto |
wdOpenFormatDocument |
wdOpenFormatEncodedText |
wdOpenFormatRTF |
wdOpenFormatTemplate |
wdOpenFormatText |
wdOpenFormatUnicodeText |
wdOpenFormatWebPages |
expression.DefaultOpenFormat
expression Required. An expression that returns one of the objects in the Applies To list.
Note Use the Format argument with the Open method to specify a file converter when you're opening a single document.
Example
This example sets the default converter for opening documents to the Word document format and then opens Forecast.doc.
Options.DefaultOpenFormat = wdOpenFormatDocument
Documents.Open FileName:="C:\Sales\Forecast.doc"
This example sets the default converter for opening documents to automatically determine the appropriate file converter to use when opening documents.
Options.DefaultOpenFormat = wdOpenFormatAuto
This example sets the default converter for opening documents to the WordPerfect 6.x format.
Options.DefaultOpenFormat = _
FileConverters("WordPerfect6x").OpenFormat
Applies to | Options Object
See Also | Open Event | OpenFormat Property