Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I found a site that shows some code for removing old entries in a PivotTable.
However, it does NOT say where to put the damn code. It's a SUB function. Here is the code: Sub DeleteMissingItems2002All() 'prevents unused items in non-OLAP PivotTables Dim pt As PivotTable Dim ws As Worksheet Dim pc As PivotCache 'change the settings For Each ws In ActiveWorkbook.Worksheets For Each pt In ws.PivotTables pt.PivotCache.MissingItemsLimit = xlMissingItemsNone Next pt Next ws 'refresh all the pivot caches For Each pc In ActiveWorkbook.PivotCaches On Error Resume Next pc.Refresh Next pc End Sub So, where do I input it?? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
vlookup and a function field input | Excel Worksheet Functions | |||
Match function in a two input table | Excel Worksheet Functions | |||
Asking for user input if there is no data for the function | Excel Worksheet Functions | |||
user input function | Excel Worksheet Functions | |||
function IF / how to input pictures into this functions / | Excel Worksheet Functions |