FormatName Property

Microsoft Word Visual Basic

FormatName Property

       

Returns the name of the specified file converter. The format names appear in the Save as type box in the Save As dialog box (File menu). Read-only String.

Example

This example displays the format name of the first converter in the FileConverters collection.

MsgBox FileConverters(1).FormatName

This example uses the AvailableConv() array to store the names of all the available file converters.

Dim intTemp As Integer
Dim fcLoop As FileConverter
Dim AvailableConv As Variant

ReDim AvailableConv(FileConverters.Count - 1)

intTemp = 0

For Each fcLoop In FileConverters
    AvailableConv(intTemp) = fcLoop.FormatName
    intTemp = intTemp + 1
Next fcLoop