Muokkaa

Jaa


FileConverter.OpenFormat property (Word)

Returns the file format of the specified file converter. Read-only Long.

Syntax

expression. OpenFormat

expression Required. A variable that represents a 'FileConverter' object.

Remarks

This property can be any valid WdOpenFormat constant, or it can be a unique number that represents an external file converter.

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

See also

FileConverter Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.