Filter Help with Pivots - External Data

H

helpnexcel

I tried both the manual method & Macro but neither seemed to work. An
guidance on exactly how to implement the macro?

Manual Method
1- Drag the pivot field out of the pivot table.
2- On the Pivot toolbar, click the Refresh button
3- Drag the pivot field back to the pivot table

and the Macro Method
Sub DeleteMissingItems2002All()
'prevents unused items in PivotTable

'in Excel 2002 and later versions
'If unused items already exist,
'run this macro then refresh the table
Dim pt As PivotTable
Dim ws As Worksheet

For Each ws In ActiveWorkbook.Worksheets
For Each pt In ws.PivotTables
pt.PivotCache.MissingItemsLimit = xlMissingItemsNone
Next pt
Next ws

End Su
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top