View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
S30 via OfficeKB.com S30 via OfficeKB.com is offline
external usenet poster
 
Posts: 4
Default Display only selected fields in a PivotTable with VBA

Tom Ogilvy wrote:

for each pvtItm in
ActiveSheet.PivotTables("PivotTable3").PivotField s("Date").PivotItems
pvtItm.Visible = False
for a = 1 to intCountRows2
strField = Sheet1.Cells(a, 7).Value
If pvtItm.Value = strField Then
pvtItm.Visible = True
exit for
Next
Next PvtItm

Hi all,

[quoted text clipped - 47 lines]



Thank you very much!!!

--
Message posted via http://www.officekb.com