Document.PublicationType property (Publisher)

Returns a PbPublicationType constant that represents the type of the specified publication. Read-only.

Syntax

expression.PublicationType

expression A variable that represents a Document object.

Return value

PbPublicationType

Example

The following example determines if the active publication is a print publication. If it is, the publication is converted to a web publication.

Sub ChangePublicationType() 
 With ActiveDocument 
 If .PublicationType = pbTypePrint Then 
 .ConvertPublicationType (pbTypeWeb) 
 End If 
 End With 
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.