Macro to Format the Pivot Table drill down

Macro to Format the Pivot Table drill down

Post by TUVTVFJFTE » Thu, 28 Jul 2005 06:36:02


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???
 
 
 

Macro to Format the Pivot Table drill down

Post by Tom Ogilv » Thu, 28 Jul 2005 08:07:39

Did you try using the NewSheet property of the workbook object. I tested
it in xl97 and it worked for me.,


--
Regards,
Tom Ogilvy




generates
run

 
 
 

Macro to Format the Pivot Table drill down

Post by TUVTVFJFTE » Thu, 28 Jul 2005 23:48:15

Sorry,

can you be more specific?
 
 
 

Macro to Format the Pivot Table drill down

Post by Tom Ogilv » Fri, 29 Jul 2005 00:09:25

I meant NewSheet event

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

http://www.yqcomputer.com/

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.

--
Regards,
Tom Ogilvy




tested


and
then
 
 
 

Macro to Format the Pivot Table drill down

Post by TUVTVFJFTE » Fri, 29 Jul 2005 01:50:03

thanks,

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