Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Remove specific Pivotcache fields

Hello all

I'm attempting to have VBA code to remove specific Pivotcache fields

basically currently i have the following

Name | Sales
Bob | 5
Dave | 3

Now the name field shows even if blank, so if i clear the sales data
and refresh i still see the list of names

What i ideally want todo is to clear just the number of sales, so each
time the sheet is opened it has blank number of sales

Any ideas/suggestions would be really appreciated!

I tried the following with no luck
For Each ws In ActiveWorkbook.Worksheets
For Each pt In ws.PivotTables
For Each pf In pt.VisibleFields
For Each pi In pf.PivotItems
If pi = "Sales" Then
pi.Delete
End If
Next
Next
Next
Next

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting instances of specific times in fields with date and time Rob Odum Excel Worksheet Functions 2 April 13th 06 04:06 PM
Remove element from menu Dominic Excel Discussion (Misc queries) 1 February 1st 06 08:25 PM
Remove link fr a column of entries Rasoul Khoshravan Azar Excel Discussion (Misc queries) 1 December 18th 04 10:51 PM
Remove link fr a column of entries Rasoul Khoshravan Azar Excel Discussion (Misc queries) 1 December 17th 04 08:07 PM
Remove link fr a column of entries Rasoul Khoshravan Azar Excel Discussion (Misc queries) 1 December 17th 04 06:44 PM


All times are GMT +1. The time now is 07:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"