Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Pivot Table - filter by a cell reference

Hmm. Also, try using a string value instead of a range.

Dim strTitleSelection As String
strTitleSelection = Worksheets("Control Sheet").Range("JnlCode").Value
ActiveSheet.PivotTables("PivotTable3").PivotFields ("Title #2").CurrentPage =
strTitleSelection

Hope that helps,
-jeff


"Matthew Balch" wrote:

Hi,

I am having trouble with some VB where I want to filter a pivot table based
upo na cell value.

Here's the problem bit ofVB I have:-


Dim TitleSelection As Range
Set TitleSelection = Worksheets("Control Sheet").Range("JnlCode")

ActiveSheet.PivotTables("PivotTable3").PivotFields ("Title
#2").CurrentPage =
TitleSelection

I.e. where I have = TitleSelection doesn't work.

Thanks in advance
Matt




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
Linking a pivot table filter to a control cell Bob Freeman Excel Discussion (Misc queries) 3 April 4th 23 02:19 PM
PIVOT - Reference a cell outside the table for report filtering Tim Miller Excel Discussion (Misc queries) 2 February 12th 09 07:54 PM
Filter lines with Pivot table and non pivot table columns Grover Charts and Charting in Excel 4 September 28th 07 03:16 AM
Filter lines with Pivot table and non Pivot table columns Grover Excel Discussion (Misc queries) 1 September 26th 07 12:48 AM
Pivot Table - filter by a cell reference Jeff S[_2_] Excel Programming 0 February 13th 07 11:07 PM


All times are GMT +1. The time now is 07:39 AM.

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"