Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Emily Diaz   on Nov 25 In MS Office Category.

  
Question Answered By: Dot net Sachin   on Nov 25

code to delete all pivot  tables in a workbook
Sub DelPivots()
Dim wks1 As Worksheet
Dim pvtTables As PivotTables
Dim pvtTable As PivotTable

For Each wks1 In ActiveWorkbook.Worksheets
For Each pvtTable In wks1.PivotTables
pvtTable.TableRange2.Clear
Next
Next
End Sub

Share: 

 
 
Didn't find what you were looking for? Find more on Code for Pivot table date change Or get search suggestion and latest updates.


Tagged: