GetCell (Method)

Applies To:

Column, ResultsSection object, TableSection

Description:

Returns the value of a cell in a Results or Table section.

Syntax:

Expression.GetCell(nRow As Long) as variant
Expression.GetCell(nRow As Long, nCol as Long)

Expression Required:

An expression that returns a Column or a TableSection object

Example:

This example shows how to populate a list box using Results section values:

var MyList = ActiveDocument.Sections["Dashboard"].Controls["ListBox"]
var RowCount = ActiveDocument.Sections["Results"].RowCount
var MyCol  = ActiveDocument.Sections["Results"].Columns["State"]
for (j = 1 ; j <= RowCount ; j = j+1)
{
  var Temp = MyCol.GetCell(j)  
  MyList.Add(Temp)
}