Syntax

expression.DirectPrecedents

expression A variable that represents a Range object.

Remarks

The DirectPrecedents property only works on the active sheet and can not trace remote references.

Example

This example selects the direct precedents of cell A1 on Sheet1.

Visual Basic for Applications
Worksheets("Sheet1").Activate Range("A1").DirectPrecedents.Select
direct precedents Direct Precedents Property DirectPrecedents DirectPrecedents Property formula directprecedents Give me location of direct precedents of a cell. return cell direct precedents Return range containing direct precedents of specific cell

See also: