Export (0) Print
Expand All

Document.PublicationType Property (Publisher)

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

expression .PublicationType

expression A variable that represents a Document object.

Return Value

PbPublicationType

The PublicationType property value can be one of these PbPublicationType constants.

pbTypePrint

pbTypeWeb

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 

Show:
© 2014 Microsoft