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

Document.PublicationType Property (Publisher)

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

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

Remarks

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

| pbTypePrint| | pbTypeWeb|

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