Document.ConvertPublicationType method (Publisher)

Converts the specified publication to the specified publication type.

Syntax

expression.ConvertPublicationType (Value)

expression A variable that represents a Document object.

Parameters

Name Required/Optional Data type Description
Value Required PbPublicationType The type of publication to which you want the publication converted. Can be one of the PbPublicationType constants declared in the Microsoft Publisher type library.

Remarks

When a publication is converted, any settings that apply to its previous type remain, but are ignored. For example, converting a print publication to a web publication results in any advanced print settings being ignored. If the publication is converted back to a print publication, the settings take effect again.

Use the PublicationType property to determine the publication type of a publication.

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.