Clip

This property returns and sets the contents of the cells in the Grid control's selected region.

Syntax

object.Clip [= string ]

Parameters

object
Object expression that evaluates to a Grid control.
string
String expression with the contents of the selected area.

Remarks

The Clip property is unavailable at design time.

The string parameter 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. A carriage return, Chr (13), or the constant vbCR indicates the beginning of a new row. Use the Chr function or constants to embed these characters in strings.

You can place data only into the selected cells. If there are more cells in the selected region than are described in string, the remaining cells are uneffected. If there are more cells described in string than in the selected region, the unused portion of string is ignored.