LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Auto Program Pivots from a userform

You can reference all the properties and attributes of a pivottable on
another sheet without making that sheet active or selecting the pivot table.

Instead of
worksheets("Sheet1").Activate
Range("A1:Z26").Select

you would use

Worksheets("Sheet1").Range("A1:Z26")

or for a pivottable
worksheets("Sheet1").pivotTables("PivotTable1").

and so forth.


See examples at Debra Dalgleish's site
http://www.contextures.com/tiptech.html

See P for Pivot Tables


--
Regards,
Tom Ogilvy


"rivers" wrote:

Hi

Is it possible to auto program a pivot to select certain months within a
list selected on a user form so that the Pivot can be updated to these months

eg i select 3 or 4 months on my worksheet from a multiselect list which
updates a pivot on another worksheet without the need to manually select the
sheet and then selecting the pivot table.

any help would be greatfully appreciated

thanks

Rivers

 
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
Pivots - Auto calc % Sub total is of grand total VBA Noob Excel Discussion (Misc queries) 3 August 8th 06 08:46 PM
help - How do you program many pivots to sink to same page field Todd F.[_2_] Excel Programming 4 August 17th 05 06:47 PM
I would like to build macro's to do pivots or part of pivots Todd F.[_2_] Excel Programming 2 July 29th 05 03:59 PM
Can I program a userform via spreadsheet? Phillips Excel Programming 2 November 27th 03 04:11 AM
Pivots using other pivots and dynamic query problem lc Excel Programming 0 November 7th 03 03:02 PM


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