Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (36 sloc) 1.05 KB
title keywords f1_keywords ms.prod api_name ms.assetid ms.date
Column.Cells Property (Publisher)
vbapb10.chm4980738
vbapb10.chm4980738
publisher
Publisher.Column.Cells
6c8b33f9-61f0-086c-1ceb-996221aa3a02
06/08/2017

Column.Cells Property (Publisher)

Returns a CellRange object that represents the cell or cells in a column of a table.

Syntax

expression. Cells

expression A variable that represents a Column object.

Example

This example merges the first and second cells in the first column of the specified table.

Sub MergeCell() 
 With ActiveDocument.Pages(1).Shapes(2).Table.Columns(1) 
 .Cells(1).Merge MergeTo:=.Cells(2) 
 End With 
End Sub

This example applies a thick border outline to the first cell in the second column of the specified table.

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