Skip to content

Latest commit

 

History

History
46 lines (22 loc) · 918 Bytes

b0b52ca0-a73b-acc3-25a8-330da27e4f92.md

File metadata and controls

46 lines (22 loc) · 918 Bytes

PivotCell.Range Property (Excel)

Returns a Range object that represents the range the specified PivotCell applies to.

Syntax

expression . Range

expression A variable that represents a PivotCell object.

Example

The following example stores in a variable the address for the AutoFilter applied to the Crew worksheet.

rAddress = Worksheets("Crew").AutoFilter.Range.Address

This example scrolls through the workbook window until the hyperlink range is in the upper-left corner of the active window.

Workbooks(1).Activate 
Set hr = ActiveSheet.Hyperlinks(1).Range 
ActiveWindow.ScrollRow = hr.Row 
ActiveWindow.ScrollColumn = hr.Column

See also

Concepts

PivotCell Object

Other resources

PivotCell Object Members