Clip

Returns or sets the contents of the cells in Grid control's selected region. Not available at design time.

Syntax

object.Clip [= string ]

The Clip property syntax has these parts:

Part Description
object An object expression that evaluates to an object.
string A string expression with the contents of the selected area.

Remarks

The string may hold the contents of multiple rows and columns. In string, a tab character, Chr (9), or the constant vbTab indicates a new cell in a row, and a carriage return, Chr (13) or vbCR indicates the beginning of a new row. Use the Chr function or the vb constants to embed these characters in strings.

When placing data into a Grid control, only the selected cells are affected. If there are more cells in the selected region than are described in string, the remaining cells are left alone. If there are more cells described in string than in the selected region, the unused portion of string is ignored.