Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 846 Bytes

Excel.PivotItems.Add.md

File metadata and controls

42 lines (26 loc) · 846 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
PivotItems.Add method (Excel)
vbaxl10.chm248074
vbaxl10.chm248074
Excel.PivotItems.Add
2d24bb3f-e765-c78c-bef0-787db82056c7
05/07/2019
medium

PivotItems.Add method (Excel)

Creates a new PivotTable item.

Syntax

expression.Add (Name)

expression A variable that represents a PivotItems object.

Parameters

Name Required/Optional Data type Description
Name Required String The name of the new PivotTable item.

Example

This example creates a new PivotTable item in the first PivotTable report on worksheet one.

Worksheets(1).PivotTables(1).PivotItems("Year").Add "1998"

[!includeSupport and feedback]