This documentation is archived and is not being maintained.

Document.ConvertPublicationType Method

Office 2007
Converts the specified publication to the specified publication type.



expression   A variable that represents a Document object.


NameRequired/OptionalData TypeDescription
ValueRequiredPbPublicationTypeThe type of publication to which you want the publication converted.


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 of the Document object to determine the publication type of a publication.

The Value parameter can be one of the following PbPublicationType constants declared in the Microsoft Office Publisher type library.



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

Visual Basic for Applications
Sub ChangePublicationType()
    With ActiveDocument
        If .PublicationType = pbTypePrint Then
        .ConvertPublicationType (pbTypeWeb)
        End If
    End With
End Sub