運算式。TableRange1 表達代表樞紐分析表物件的變數。 註解 TableRange2屬性包含頁面欄位。 範例 本範例會選取所有樞紐分析表,但頁面欄位除外。 VB Worksheets("Sheet1").Activate Range("A3").PivotTable.TableRange1.Select 支援和意見反應 有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並...
'Delete Pivot Table By Name ActiveSheet.PivotTables("PivotTable1").TableRange2.Clear End Sub VBA删除所有透视表:Delete All Pivot Tables Sub DeleteAllPivotTables() 'PURPOSE: Delete all Pivot Tables in your Workbook 'SOURCE: www.TheSpreadsheetGuru.com Dim sht As Worksheet Dim pvt As PivotTable ...
expression 一个表示 Range 对象的变量。示例本示例将 Sheet1 上数据透视表的当前页设置为名为 Canada 的页面。VB 复制 Set pvtTable = Worksheets("Sheet1").Range("A3").PivotTable pvtTable.PivotFields("Country").CurrentPage = "Canada" 此示例确定与活动工作表上的“销售”图表关联的数据透视表,然后...
PivotTableChangeList 对象 PivotTables 对象 PivotValueCell 对象 PlotArea 对象 Point 对象 Points 对象 ProtectedViewWindow 对象 ProtectedViewWindows 对象 Protection 对象 PublishObject 对象 PublishObjects 对象 Queries 对象 QueryTable 对象 QueryTables 对象 QuickAnalysis 对象 Range 对象 Ranges 对象 RecentFile 对象...
TableName:="PivotTable1") EndSub vba 删除指定的透视表:Delete A Specific Pivot Table SubDeletePivotTable() 'PURPOSE: How to delete a specifc Pivot Table 'SOURCE: www.TheSpreadsheetGuru.com 'Delete Pivot Table By Name ActiveSheet.PivotTables("PivotTable1").TableRange2.Clear ...
Step 1: Click anywhere in the pivot table to show the PivotTable Tools on the ribbon. Step 2: Use the buttons on the ribbon to add, remove, or move fields in the pivot table. Step 3: Right-click on a field in the Values area of the pivot table to change the way that the data...
返回一个 Range 对象,该对象代表数据透视表中的值范围。 此为只读属性。语法表达式。DataBodyRange表达 一个代表 数据透视表 对象的变量。支持和反馈有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。反馈 此页面是否有帮助? 是 否 中文...
PivotTableChangeList 物件 PivotTables 物件 PivotValueCell 物件 PlotArea 物件 Point 物件 Points 物件 ProtectedViewWindow 物件 ProtectedViewWindows 物件 Protection 物件 PublishObject 物件 PublishObjects 物件 Queries 物件 QueryTable 物件 QueryTables 物件 QuickAnalysis 物件 Range 物件 Range 物件 方法 屬性 AddIn...
PivotTableChangeList object PivotTables object PivotValueCell object PlotArea object Point object Points object ProtectedViewWindow object ProtectedViewWindows object Protection object PublishObject object PublishObjects object Queries object QueryTable object QueryTables object QuickAnalysis object Range object Ra...
Once you have it, you can insert the pivot table.Insert the Pivot Table From RibbonTo insert a pivot table from the menu, follow these steps: 1. Select your data range 2. Go to the insert tab 3. Click on the Pivot Table icon. 4. Create a Pivot Table option box will appear. 5....