Search notes:

Office Object Model: Word - Table

Methods and properties

allowAutoFit
application
applyStyleColumnBands
applyStyleDirectFormatting()
applyStyleFirstColumn
applyStyleHeadingRows
applyStyleLastColumn
applyStyleLastRow
applyStyleRowBands
autoFitBehavior() Call with argument value wdAutoFitContent (table is automatically sized), wdAutoFitFixed (table is not sized) or wdAutoFitWindow (table is sized to the width of the Window).
autoFormat() Applies a predefined look.
autoFormatType
borders Returns a borders collection
bottomPadding
cell() Returns the cell object with the given coordinates (row and column)
columns, rows Returns a columns/rows collection that represents all columns/rows of the table.
convertToText()
creator
delete() Removes the entire table.
descr
ID
leftPadding
nestingLevel
parent
preferredWidth
preferredWidthType
range
rightPadding
rows
select()
shading
sort()
sortAscending()
sortDescending()
spacing
split() Inserts an empty paragraph.
style
tableDirection wdTableDirectionLTR or wdTableDirectionRTL.
tables
title
topPadding
uniform
updateAutoFormat()

Number of rows and columns

debug.print(activeDocument.tables(1).rows.count   )
debug.print(activeDocument.tables(1).columns.count)

Select a specific cell

dim c as cell
set c = activeDocument.tables(1).cells(6, 2) ' 6th row, 2nd column
c.select

See also

Example: Inserting multiple tables
Word Object Model

Index