FileConverters Property

Microsoft Word Visual Basic

FileConverters Property

       

Returns a FileConverters collection that represents all the file converters available to Word. Read-only.

For information about returning a single member of a collection, see Returning an Object from a Collection.

Example

This example displays the path of the WordPerfect 5.0 file converter.

MsgBox FileConverters("WrdPrfctDOS50").Path

This example displays a message that indicates whether the third converter in the FileConverters collection can save files.

If FileConverters(3).CanSave = True Then
    MsgBox FileConverters(3).FormatName & " can save files"
Else
    MsgBox FileConverters(3).FormatName & " cannot save files"
End If

This example displays the name of the last file converter.

Dim fcTemp As FileConverter

Set fcTemp = FileConverters(FileConverters.Count)
MsgBox "The file extensions for " & fcTemp.FormatName & _
    " files are: " & fcTemp.Extensions