Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pivot Table - Trigger event on drill down

Is it possible to trigger an event on vba when a user drills down (or back)
in a pivot table. Is there anything like: ?

sub PivotTable.OnDrillDown

End Sub

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pivot Table - Trigger event on drill down

You can use the workbook newsheet event in xl97 and later. Just check each
new sheet and determine if it appears to be produced from a pivot table
drilldown. I am not familiar with a drill back.

--
Regards,
Tom Ogilvy

"Martyn Upson" <Martyn wrote in message
...
Is it possible to trigger an event on vba when a user drills down (or

back)
in a pivot table. Is there anything like: ?

sub PivotTable.OnDrillDown

End Sub

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Pivot Table - Trigger event on drill down

Hi Martyn,

So far as I know, there are know pivot table events. The worksheet
calculate event fires when the pivot table changes as a result of a drill up
or down. Depending on your purpose that might make a good substitue.

Regards,
Mike

"Martyn Upson" wrote:

Is it possible to trigger an event on vba when a user drills down (or back)
in a pivot table. Is there anything like: ?

sub PivotTable.OnDrillDown

End Sub

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Pivot Table - Trigger event on drill down

Thanks for that, "Worksheet_Calculate" worked just how id hoped. My drill
down/up is the type where the pivot table expands rather that generates a new
sheet, so the calculate solution is the best to use for now. Thanks also to
Tom as the new sheet event will probably come in handy sooner or later.

:)

Martyn

"MIKE215" wrote:

Hi Martyn,

So far as I know, there are know pivot table events. The worksheet
calculate event fires when the pivot table changes as a result of a drill up
or down. Depending on your purpose that might make a good substitue.

Regards,
Mike

"Martyn Upson" wrote:

Is it possible to trigger an event on vba when a user drills down (or back)
in a pivot table. Is there anything like: ?

sub PivotTable.OnDrillDown

End Sub

Thanks

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
Pivot Table Drill Down EarlyBirdie Excel Discussion (Misc queries) 0 February 27th 08 06:07 PM
Pivot table drill down In a quandry Excel Discussion (Misc queries) 0 November 12th 07 02:56 PM
Pivot Table drill down Beccy Excel Discussion (Misc queries) 1 March 1st 07 02:20 PM
Top 10 within a drill-down in a pivot table? ChrisBusch Excel Discussion (Misc queries) 8 June 2nd 05 08:36 PM
Automate Pivot Table Drill down tim Excel Worksheet Functions 0 April 5th 05 02:19 AM


All times are GMT +1. The time now is 09:24 AM.

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"