Complete the code to set the PivotTable layout to Tabular form.
pivotTable.RowAxisLayout [1] xlTabularRowIn Excel VBA, to assign a layout to a PivotTable, use the assignment operator =.
Complete the code to set the PivotTable layout to Outline form.
pivotTable.RowAxisLayout [1] xlOutlineRowThe assignment operator = is used to set the PivotTable layout property.
Fix the error in the code to set the PivotTable layout to Compact form.
pivotTable.RowAxisLayout [1] xlCompactRowThe correct operator to assign a value is =. Using other symbols causes errors.
Fill both blanks to create a PivotTable and set its layout to Tabular form.
Set pivotTable = worksheet.PivotTables([1]) pivotTable.RowAxisLayout [2] xlTabularRow
First, specify the PivotTable name as a string with quotes. Then use = to assign the layout.
Fill all three blanks to create a PivotTable, set its layout to Outline form, and refresh it.
Set pivotTable = worksheet.PivotTables([1]) pivotTable.RowAxisLayout [2] xlOutlineRow pivotTable.[3]
RefreshTable.Use the PivotTable name as a string, assign the layout with =, and call the Refresh method to update the PivotTable.