Skip to content

Latest commit

 

History

History
43 lines (25 loc) · 1001 Bytes

Excel.PivotCache.RecordCount.md

File metadata and controls

43 lines (25 loc) · 1001 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotCache.RecordCount property (Excel)
vbaxl10.chm227079
vbaxl10.chm227079
Excel.PivotCache.RecordCount
5fcdcf2d-d52f-6ac1-ef09-8377fc5a1f4d
05/03/2019
medium

PivotCache.RecordCount property (Excel)

Returns the number of records in the PivotTable cache or the number of cache records that contain the specified item. Read-only Long.

Syntax

expression.RecordCount

expression A variable that represents a PivotCache object.

Remarks

This property reflects the transient state of the cache at the time that it's queried. The cache can change between queries.

Example

This example displays the number of cache records that contain Kiwi in the Products field.

MsgBox Worksheets(1).PivotTables("Pivot1") _ 
 .PivotFields("Product").PivotItems("Kiwi").RecordCount

[!includeSupport and feedback]