Publisher) (Document.PublicationType 屬性

傳回代表指定出版物類型的 PbPublicationType 常數。 唯讀。

語法

運算式。PublicationType

運算式 代表 Document 物件的變數。

傳回值

PbPublicationType

範例

下列範例判定使用中出版物是否為印刷出版物。 如果是,則出版物會轉換為 Web 出版物。

Sub ChangePublicationType() 
 With ActiveDocument 
 If .PublicationType = pbTypePrint Then 
 .ConvertPublicationType (pbTypeWeb) 
 End If 
 End With 
End Sub

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。