Document.SaveFormat property (Publisher)

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 Publisher type library.

Example

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

Sub SaveAsRTF() 
 
 If Application.ActiveDocument.SaveFormat = pbFilePublisher2000 Then 
 ActiveDocument.SaveAs "Flyer3", pbFileRTF 
 End If 
 
End Sub

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.