Cell.AutoSum Method
Word Developer Reference |
Inserts an = (Formula) field that calculates and displays the sum of the values in table cells above or to the left of the cell specified in the expression.
Syntax
expression.AutoSum
expression Required. A variable that represents a Cell object.
Remarks
For information about how Word determines which values to add, see the Formula method.
Example
This example creates a 3x3 table in a new document and sums the numbers in the first column.
Visual Basic for Applications |
---|
|
This example sums the numbers above or to the left of the cell that contains the insertion point.
Visual Basic for Applications |
---|
|
See Also