LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default linking pivot table selections

Using Excel 2007. I have two (or more) pivot tables that I want to be able to
link the selections made in one to another. I have the following code

Sub test()
Sheets("Sheet1").Select

Application.ScreenUpdating = False
Application.DisplayAlerts = False

Dim SPgField1 As String
Range("b1").Select
SPgField1 = Selection
Sheets("Sheet1").PivotTables("PivotTable2").PivotF ields("Field
1").CurrentPage = SPgField1

End Sub

The pivots are on sheet1
The 1st pivot table has 1 selection Field1.
The above code works if i am only making a single selection
However I need to be able to do multiple selections.
When this is done in the field b1 it shows the value Multiple Selections
This gets copied into the field1 on pivot table 2 - and overwrites the first
value of the selection list with Multiple Values. But doesnt do the correct
values

Any ideas much appreciated
 
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
Question regarding pivot table selections nacholibre Excel Discussion (Misc queries) 3 October 23rd 06 06:19 PM
Pivot Table Page Area selections in a macro norrislaketn Excel Programming 4 March 29th 06 08:40 PM
Pivot Table Linking weeclaire Excel Discussion (Misc queries) 3 November 17th 05 12:02 PM
Pivot Table Selections Richard Mogy Excel Programming 1 June 24th 05 03:05 PM
How do I get "multiple selections" displayed in Pivot Table Field Glenn Hokin Setting up and Configuration of Excel 0 April 28th 05 01:56 AM


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

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

About Us

"It's about Microsoft Excel"