Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Kay Kay is offline
external usenet poster
 
Posts: 129
Default PivotTable 2003 Code is not working

HI guys,

I have added code to show all items in my pivottable when a bitmap is
clicked. The code needs to first show all items in the pivottable and then
go back to the scorecard sheet. THe code to show all itmes does not work at
all. The hyperlink works fine. I am hoping this code will solve another
problem. On the scorecard, I have a button to click that filters the
pivottable for a specific page item and specific row item. If they go back
to the scorecard and choose another filter choice, it does not filter
properly. So I thought if each time they go back to the scorecard the
pivottable would show all items it would then filter correctly each time they
choose a new item to filter by from the scorecard.

Sub UnFILterOPDrilldown()
'
' UnFILterOPDrilldown Macro
' Macro recorded 4/6/2010 by kay
Dim xx As String
Application.ScreenUpdating = False
'Sheets("OP Drilldown").Select
ActiveSheet.PivotTables("PivotTable1").PivotFields ("Business Unit"). _
CurrentPage = "(All)"
EnableMultiplePageItems = True
With ActiveSheet.PivotTables("PivotTable1").PivotFields ("Sub-Product")
.AutoSort xlManual, .SourceName
.PivotItems("API CO3").Visible = True
.PivotItems("API Rnagel").Visible = True
.PivotItems("API Renvela").Visible = True
.PivotItems("FG Renagel").Visible = True
.PivotItems("Renvela Sachets").Visible = True
.PivotItems("FG CO3").Visible = True
.AutoSort xlAscending, .SourceName
End With

xx = "#'Operational Scorecard'!a1"
ActiveWorkbook.FollowHyperlink Address:=xx, NewWindow:=False
Application.ScreenUpdating = True
End Sub

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
Code in 2003 not working in 2007 GregK Excel Programming 9 September 18th 08 12:55 PM
2007 code not working in 2003 Imran J Khan Excel Programming 5 September 2nd 08 09:00 PM
Code for Inserting Sheet in Excel 2000 not working in 2003 Enginerd88 Excel Programming 1 March 20th 08 06:46 AM
PivotTable Macro not working T De Villiers[_53_] Excel Programming 2 July 24th 06 08:15 PM
Problem with VBA code written in Excel 2002 working in Office 2003 [email protected] Excel Programming 2 July 11th 06 08:44 PM


All times are GMT +1. The time now is 01:36 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"