Document.SaveFormat property (Word)

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

Syntax

expression. SaveFormat

expression Required. A variable that represents a Document object.

Remarks

The SaveFormat property will be a unique number that specifies an external file converter or a WdSaveFormat constant.

Use the value of the SaveFormat property for the FileFormat argument of the SaveAs2 method to save a document in a file format for which there isn't a corresponding WdSaveFormat constant.

Example

If the active document is a Rich Text Format (RTF) document, this example saves it as a Microsoft Word document.

If ActiveDocument.SaveFormat = wdFormatRTF Then 
 ActiveDocument.SaveAs FileFormat:=wdFormatDocument 
End If

See also

Document 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.