Publisher) (Column.Cells 屬性
會傳回 CellRange 物件,代表表格欄中的儲存格。
語法
expression.Cells
表達 代表 Column 物件的變數。
範例
本範例合併指定表格第一欄的第一和第二個儲存格。
Sub MergeCell()
With ActiveDocument.Pages(1).Shapes(2).Table.Columns(1)
.Cells(1).Merge MergeTo:=.Cells(2)
End With
End Sub
本範例為指定表格第二欄的第一個儲存格加上粗框線。
Sub OutlineBorderCell()
With ActiveDocument.Pages(1).Shapes(2).Table.Columns(2).Cells(1)
.BorderLeft.Weight = 5
.BorderRight.Weight = 5
.BorderTop.Weight = 5
.BorderBottom.Weight = 5
End With
End Sub
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。