Table of contents
TOC
Collapse the table of content
Expand the table of content

Document.SaveFormat Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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
© 2018 Microsoft