O'Reilly logo

Writing Word Macros, Second Edition by Steven Roman PhD

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Cell Method

This method returns a Cell object that represents a cell in a table. The syntax is:

TableObject.Cell(Row, Column)

where Row and Column are Long integers that identify the particular cell. A Cell object can be used to format a given cell by adjusting such things as its text (through the Range property), its height, width, shading, and so on. The following is a complete list of the properties and methods of the Cell object:

Application

Height

RowIndex

AutoSum

HeightRule

Select

Borders

Merge

SetHeight

Column

Next

SetWidth

ColumnIndex

Parent

Shading

Creator

Previous

Split

Delete

Range

VerticalAlignment

Formula

Row

Width

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required