Returns or sets the text contents of a cell or range of cells.
object.Text [= string ]
The Text property syntax has these parts:
Part | Description |
---|---|
object | An object expression that evaluates to an object. |
string | A string expression containing the text contents of a cell or range of cells. |
When retrieving, the Text property always retrieves the contents of the current cell, defined by the Row and Col properties.
When setting, the Text property sets the contents of the current cell or of the current selection, depending on the setting of the FillStyle property.