Macro to Format the Pivot Table drill down

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Macro to Format the Pivot Table drill down.

I need a way to run a macro when i do a drill down on a pivot table.

what i have is a summary of a source data, that when users access this and
try to get detail, i what to format the sheet that the pivot table generates
when it does the drill down.

Basically, double click on pivot table opens the drill down detail, then run
the macro to format this sheet.

Did a made my self clear???
 
Did you try using the NewSheet property of the workbook object. I tested
it in xl97 and it worked for me.,
 
I meant NewSheet event

See Chip Pearson's page on events if you are not familiar:

http://www.cpearson.com/excel/events.htm

When you drill down, a new sheet is created and triggers the newsheet event
with a reference to the new sheet. You can have your code check if it is of
the format of the pivottable and then do your formatting if it is.
 
thanks,

I will try this and see if it works...

Tom Ogilvy said:
I meant NewSheet event

See Chip Pearson's page on events if you are not familiar:

http://www.cpearson.com/excel/events.htm

When you drill down, a new sheet is created and triggers the newsheet event
with a reference to the new sheet. You can have your code check if it is of
the format of the pivottable and then do your formatting if it is.
 
Back
Top