DefaultOpenFormat Property
Applies To
Options object.
Description
Returns or sets the default file converter used to open documents. Can be a number returned by the OpenFormat property, or one of the following WdOpenFormat constants: wdOpenFormatAuto, wdOpenFormatDocument, wdOpenFormatRTF, wdOpenFormatTemplate, wdOpenFormatText, or wdOpenFormatUnicodeText. Read/write Long.
Note Use the Format argument with the Open method to specify a file converter when you're opening a single document.
See Also
Open method, OpenFormat property.
Example
This example sets the default converter for opening documents to the Word document format and then opens Forcast.doc.
Options.DefaultOpenFormat = wdOpenFormatDocument
Documents.Open FileName:="C:\Sales\Forcast.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