This documentation is archived and is not being maintained.

Document.SaveFormat Property

Office 2007
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.SaveFormat = pbFilePublisher2000 Then
        ActiveDocument.SaveAs "Flyer3", pbFileRTF
    End If

End Sub



Show: