發行者) (檔物件
此物件代表一篇出版物。
註解
使用 ActiveDocument 若要參照到目前的出版物的屬性。
範例
此範例會新增使用中出版物第一頁表格。
Sub NewTable()
With ActiveDocument.Pages(1).Shapes
.AddTable NumRows:=3, NumColumns:=3, Left:=72, Top:=300, _
Width:=488, Height:=36
With .Item(1).Table.Rows(1)
.Cells(1).TextRange.Text = "Column1"
.Cells(2).TextRange.Text = "Column2"
.Cells(3).TextRange.Text = "Column3"
End With
End With
End Sub
您也可以使用 ThisDocument 模組的參考來撰寫先前的常式。 本範例不用 ActiveDocument ,而改用 ThisDocument 參照。
Sub PrintPublication()
With ThisDocument.Pages(1).Shapes
.AddTable NumRows:=3, NumColumns:=3, Left:=72, Top:=300, _
Width:=488, Height:=36
With .Item(1).Table.Rows(1)
.Cells(1).TextRange.Text = "Column1"
.Cells(2).TextRange.Text = "Column2"
.Cells(3).TextRange.Text = "Column3"
End With
End With
End Sub
事件
方法
- BeginCustomUndoAction
- ChangeDocument
- Close
- ConvertPublicationType
- EndCustomUndoAction
- ExportAsFixedFormat
- FindShapeByWizardTag
- FindShapesByTag
- PrintOutEx
- 取消復原
- Save
- SaveAs
- SetBusinessInformation
- Undo
- UndoClear
- UpdateOLEObjects
- WebPagePreview
屬性
- ActiveView
- ActiveWindow
- AdvancedPrintOptions
- 應用程式
- AvailableBuildingBlocks
- BorderArts
- ColorScheme
- DefaultTabStop
- DocumentDirection
- EnvelopeVisible
- Find
- FullName
- IsDataSourceConnected
- IsWizard
- LayoutGuides
- MailEnvelope
- MailMerge
- MasterPages
- 名稱
- Pages
- PageSetup
- Parent
- Path
- PrintPageBackgrounds
- PrintStyle
- PublicationType
- ReadOnly
- RedoActionsAvailable
- RemovePersonalInformation
- Saved
- SaveFormat
- ScratchArea
- Sections
- Selection
- Stories
- SurplusShapes
- 標記
- TextStyles
- UndoActionsAvailable
- ViewBoundaries
- ViewGuides
- ViewHorizontalBaseLineGuides
- ViewTwoPageSpread
- ViewVerticalBaseLineGuides
- WebNavigationBarSets
- Wizard
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。