Share via


Document.SaveFormat Property

Publisher Developer Reference

Indicates the file format of the specified document. Read-only.

Syntax

expression.SaveFormat

expression   A variable that represents a Document object.

Return Value
PbFileFormat

Remarks

The SaveFormat property value can be one of the PbFileFormat constants declared in the Microsoft Office Publisher type library.

Example

If the active publication is in the Publisher 2000 format, this example saves it in Rich Text Format (RTF).

Visual Basic for Applications
  Sub SaveAsRTF()
If Application.ActiveDocument.<strong>SaveFormat</strong> = pbFilePublisher2000 Then
    ActiveDocument.SaveAs "Flyer3", pbFileRTF
End If

End Sub

See Also