Adjacent8 Method

See Also Applies To Example Model

Returns a Region object containing the Cell neighbors. Diagonal neighbors are included.

object expression.Adjacent8

object expression    Required. An object expression that evaluates to an object in the Applies To list.

Example

The following example sets the color of the 8 Cell objects surrounding the Cell on which the Bot is standing.

Bot.CellHere.Adjacent8.Color = vbtBlue