PublicationType Property
Returns a PbPublicationType constant that represents the type of the specified publication. Read-only.
PbPublicationType can be one of these pbPublicationType constants. |
pbTypePrint |
pbTypeWeb |
expression.PublicationType
expression Required. An expression that returns one of the objects in the Applies To list.
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