DirectPrecedents Property
TOC
Collapse the table of content
Expand the table of content

Range.DirectPrecedents Property (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a Range object that represents the range containing all the direct precedents of a cell. This can be a multiple selection (a union of Range objects) if there’s more than one precedent. Read-only Range object.

expression .DirectPrecedents

expression A variable that represents a Range object.

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

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

Worksheets("Sheet1").Activate 
Range("A1").DirectPrecedents.Select

Concepts

Other resources

Show:
© 2016 Microsoft