Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1008 Bytes

Excel.Range.DirectPrecedents.md

File metadata and controls

41 lines (25 loc) · 1008 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Range.DirectPrecedents property (Excel)
vbaxl10.chm144119
vbaxl10.chm144119
Excel.Range.DirectPrecedents
d7eebe51-3e4c-e902-e6a5-1617bd21ef4e
05/10/2019
medium

Range.DirectPrecedents property (Excel)

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.

Syntax

expression.DirectPrecedents

expression A variable that represents a Range object.

Remarks

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

Example

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

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

[!includeSupport and feedback]