ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Microsoft Office Application Help - Excel Help forum > Excel Programming > Excel Charting

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-26-2005, 06:28 PM
James
Guest
 
Posts: n/a
Pivot chart issue

I have created a line chart with two Y axises based off of a pivot table.
After the chart is created I customize the text, colors and line widths the
way I want it as well as remove the pivot fields and then save it as the
default chart style. However, whenever the pivot table is refreshed it
changes the chart back to a standard line chart with only one Y axis. Is
there any way to make my chart remain the way I want it after customization
when the source pivot table is refreshed? Thanks!
Reply With Quote
  #2  
Old 05-26-2005, 06:28 PM
Debra Dalgleish
Guest
 
Posts: n/a
Re: Pivot chart issue

This is a known problem with PivotCharts. There's information in the
following MSKB article, which suggests recording a macro as you apply
the formatting:

Changing a PivotChart Removes Series Formatting in Excel
http://support.microsoft.com/?id=215904


James wrote:
> I have created a line chart with two Y axises based off of a pivot table.
> After the chart is created I customize the text, colors and line widths the
> way I want it as well as remove the pivot fields and then save it as the
> default chart style. However, whenever the pivot table is refreshed it
> changes the chart back to a standard line chart with only one Y axis. Is
> there any way to make my chart remain the way I want it after customization
> when the source pivot table is refreshed? Thanks!



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

Reply With Quote
  #3  
Old 05-26-2005, 06:52 PM
James
Guest
 
Posts: n/a
Re: Pivot chart issue

Thanks for the info. I thought I was going to go crazy! Another fabulous
Microsoft "feature".

"Debra Dalgleish" wrote:

> This is a known problem with PivotCharts. There's information in the
> following MSKB article, which suggests recording a macro as you apply
> the formatting:
>
> Changing a PivotChart Removes Series Formatting in Excel
> http://support.microsoft.com/?id=215904
>
>
> James wrote:
> > I have created a line chart with two Y axises based off of a pivot table.
> > After the chart is created I customize the text, colors and line widths the
> > way I want it as well as remove the pivot fields and then save it as the
> > default chart style. However, whenever the pivot table is refreshed it
> > changes the chart back to a standard line chart with only one Y axis. Is
> > there any way to make my chart remain the way I want it after customization
> > when the source pivot table is refreshed? Thanks!

>
>
> --
> Debra Dalgleish
> Excel FAQ, Tips & Book List
> http://www.contextures.com/tiptech.html
>
>

Reply With Quote
  #4  
Old 05-31-2005, 09:05 PM
Hannes
Guest
 
Posts: n/a
Re: Pivot chart issue

Hello there,

I'm dealing with exactly the same problem.
I have a macro that I want to run every time that the pivot table is changed.
How can I make the pivot table run the macro when it's updated?
Anyone?

Reg. Hannes


"James" wrote:

> Thanks for the info. I thought I was going to go crazy! Another fabulous
> Microsoft "feature".
>
> "Debra Dalgleish" wrote:
>
> > This is a known problem with PivotCharts. There's information in the
> > following MSKB article, which suggests recording a macro as you apply
> > the formatting:
> >
> > Changing a PivotChart Removes Series Formatting in Excel
> > http://support.microsoft.com/?id=215904
> >
> >
> > James wrote:
> > > I have created a line chart with two Y axises based off of a pivot table.
> > > After the chart is created I customize the text, colors and line widths the
> > > way I want it as well as remove the pivot fields and then save it as the
> > > default chart style. However, whenever the pivot table is refreshed it
> > > changes the chart back to a standard line chart with only one Y axis. Is
> > > there any way to make my chart remain the way I want it after customization
> > > when the source pivot table is refreshed? Thanks!

> >
> >
> > --
> > Debra Dalgleish
> > Excel FAQ, Tips & Book List
> > http://www.contextures.com/tiptech.html
> >
> >

Reply With Quote
  #5  
Old 06-01-2005, 07:05 AM
Hannes
Guest
 
Posts: n/a
Re: Pivot chart issue

Hi again,

I found out how to do this.

You can use an event called Worksheet_PivotTableUpdate to trigger a macro
that formats your charts.

Regards
Hannes


"Hannes" wrote:

> Hello there,
>
> I'm dealing with exactly the same problem.
> I have a macro that I want to run every time that the pivot table is changed.
> How can I make the pivot table run the macro when it's updated?
> Anyone?
>
> Reg. Hannes
>
>
> "James" wrote:
>
> > Thanks for the info. I thought I was going to go crazy! Another fabulous
> > Microsoft "feature".
> >
> > "Debra Dalgleish" wrote:
> >
> > > This is a known problem with PivotCharts. There's information in the
> > > following MSKB article, which suggests recording a macro as you apply
> > > the formatting:
> > >
> > > Changing a PivotChart Removes Series Formatting in Excel
> > > http://support.microsoft.com/?id=215904
> > >
> > >
> > > James wrote:
> > > > I have created a line chart with two Y axises based off of a pivot table.
> > > > After the chart is created I customize the text, colors and line widths the
> > > > way I want it as well as remove the pivot fields and then save it as the
> > > > default chart style. However, whenever the pivot table is refreshed it
> > > > changes the chart back to a standard line chart with only one Y axis. Is
> > > > there any way to make my chart remain the way I want it after customization
> > > > when the source pivot table is refreshed? Thanks!
> > >
> > >
> > > --
> > > Debra Dalgleish
> > > Excel FAQ, Tips & Book List
> > > http://www.contextures.com/tiptech.html
> > >
> > >

Reply With Quote
  #6  
Old 09-04-2005, 06:05 AM
Rav99
Guest
 
Posts: n/a
Re: Pivot chart issue

Hannes, can you give me more details how to do this? I am having the same
problem... don't know how to assign that macro to the event procedure. Where
should I do it? From the pivot table, or pivot chart tab?

"Hannes" wrote:

> Hi again,
>
> I found out how to do this.
>
> You can use an event called Worksheet_PivotTableUpdate to trigger a macro
> that formats your charts.
>
> Regards
> Hannes
>
>
> "Hannes" wrote:
>
> > Hello there,
> >
> > I'm dealing with exactly the same problem.
> > I have a macro that I want to run every time that the pivot table is changed.
> > How can I make the pivot table run the macro when it's updated?
> > Anyone?
> >
> > Reg. Hannes
> >
> >
> > "James" wrote:
> >
> > > Thanks for the info. I thought I was going to go crazy! Another fabulous
> > > Microsoft "feature".
> > >
> > > "Debra Dalgleish" wrote:
> > >
> > > > This is a known problem with PivotCharts. There's information in the
> > > > following MSKB article, which suggests recording a macro as you apply
> > > > the formatting:
> > > >
> > > > Changing a PivotChart Removes Series Formatting in Excel
> > > > http://support.microsoft.com/?id=215904
> > > >
> > > >
> > > > James wrote:
> > > > > I have created a line chart with two Y axises based off of a pivot table.
> > > > > After the chart is created I customize the text, colors and line widths the
> > > > > way I want it as well as remove the pivot fields and then save it as the
> > > > > default chart style. However, whenever the pivot table is refreshed it
> > > > > changes the chart back to a standard line chart with only one Y axis. Is
> > > > > there any way to make my chart remain the way I want it after customization
> > > > > when the source pivot table is refreshed? Thanks!
> > > >
> > > >
> > > > --
> > > > Debra Dalgleish
> > > > Excel FAQ, Tips & Book List
> > > > http://www.contextures.com/tiptech.html
> > > >
> > > >

Reply With Quote
  #7  
Old 09-04-2005, 11:05 PM
Jon Peltier
Guest
 
Posts: n/a
Re: Pivot chart issue

This event is available if you have Excel 2002 or later. Right click on the
worksheet tab of the worksheet with the pivot table, and select View Code. This
opens the VB Editor, with the code module for the worksheet activated. Select
Worksheet from the top left dropdown, then PivotTableUpdate from the top right
dropdown. (I'm only running Excel 2000 on this laptop, so I can't verify that this
works exactly right.)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Rav99 wrote:
> Hannes, can you give me more details how to do this? I am having the same
> problem... don't know how to assign that macro to the event procedure. Where
> should I do it? From the pivot table, or pivot chart tab?
>
> "Hannes" wrote:
>
>
>>Hi again,
>>
>>I found out how to do this.
>>
>>You can use an event called Worksheet_PivotTableUpdate to trigger a macro
>>that formats your charts.
>>
>>Regards
>>Hannes
>>
>>
>>"Hannes" wrote:
>>
>>
>>>Hello there,
>>>
>>>I'm dealing with exactly the same problem.
>>>I have a macro that I want to run every time that the pivot table is changed.
>>>How can I make the pivot table run the macro when it's updated?
>>>Anyone?
>>>
>>>Reg. Hannes
>>>
>>>
>>>"James" wrote:
>>>
>>>
>>>>Thanks for the info. I thought I was going to go crazy! Another fabulous
>>>>Microsoft "feature".
>>>>
>>>>"Debra Dalgleish" wrote:
>>>>
>>>>
>>>>>This is a known problem with PivotCharts. There's information in the
>>>>>following MSKB article, which suggests recording a macro as you apply
>>>>>the formatting:
>>>>>
>>>>>Changing a PivotChart Removes Series Formatting in Excel
>>>>> http://support.microsoft.com/?id=215904
>>>>>
>>>>>
>>>>>James wrote:
>>>>>
>>>>>>I have created a line chart with two Y axises based off of a pivot table.
>>>>>>After the chart is created I customize the text, colors and line widths the
>>>>>>way I want it as well as remove the pivot fields and then save it as the
>>>>>>default chart style. However, whenever the pivot table is refreshed it
>>>>>>changes the chart back to a standard line chart with only one Y axis. Is
>>>>>>there any way to make my chart remain the way I want it after customization
>>>>>>when the source pivot table is refreshed? Thanks!
>>>>>
>>>>>
>>>>>--
>>>>>Debra Dalgleish
>>>>>Excel FAQ, Tips & Book List
>>>>>http://www.contextures.com/tiptech.html
>>>>>
>>>>>


Reply With Quote
  #8  
Old 09-05-2005, 09:05 PM
Rav99
Guest
 
Posts: n/a
Re: Pivot chart issue

OK... Jon, thanks! I got that part now.. but how do I activate the macro to
fix the pivot chart format by this event procedure. I created a pivot chart
but when I changed the filter options, the chart type changes. I need to fix
that as "line-column 2 axes" chart type. Thus what I did is to create a macro
by activiate that chart type, but I don't know where to put the script for
that macro and where to link that to the event procedure. Can you help?

"Jon Peltier" wrote:

> This event is available if you have Excel 2002 or later. Right click on the
> worksheet tab of the worksheet with the pivot table, and select View Code. This
> opens the VB Editor, with the code module for the worksheet activated. Select
> Worksheet from the top left dropdown, then PivotTableUpdate from the top right
> dropdown. (I'm only running Excel 2000 on this laptop, so I can't verify that this
> works exactly right.)
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Peltier Technical Services
> Tutorials and Custom Solutions
> http://PeltierTech.com/
> _______
>
> Rav99 wrote:
> > Hannes, can you give me more details how to do this? I am having the same
> > problem... don't know how to assign that macro to the event procedure. Where
> > should I do it? From the pivot table, or pivot chart tab?
> >
> > "Hannes" wrote:
> >
> >
> >>Hi again,
> >>
> >>I found out how to do this.
> >>
> >>You can use an event called Worksheet_PivotTableUpdate to trigger a macro
> >>that formats your charts.
> >>
> >>Regards
> >>Hannes
> >>
> >>
> >>"Hannes" wrote:
> >>
> >>
> >>>Hello there,
> >>>
> >>>I'm dealing with exactly the same problem.
> >>>I have a macro that I want to run every time that the pivot table is changed.
> >>>How can I make the pivot table run the macro when it's updated?
> >>>Anyone?
> >>>
> >>>Reg. Hannes
> >>>
> >>>
> >>>"James" wrote:
> >>>
> >>>
> >>>>Thanks for the info. I thought I was going to go crazy! Another fabulous
> >>>>Microsoft "feature".
> >>>>
> >>>>"Debra Dalgleish" wrote:
> >>>>
> >>>>
> >>>>>This is a known problem with PivotCharts. There's information in the
> >>>>>following MSKB article, which suggests recording a macro as you apply
> >>>>>the formatting:
> >>>>>
> >>>>>Changing a PivotChart Removes Series Formatting in Excel
> >>>>> http://support.microsoft.com/?id=215904
> >>>>>
> >>>>>
> >>>>>James wrote:
> >>>>>
> >>>>>>I have created a line chart with two Y axises based off of a pivot table.
> >>>>>>After the chart is created I customize the text, colors and line widths the
> >>>>>>way I want it as well as remove the pivot fields and then save it as the
> >>>>>>default chart style. However, whenever the pivot table is refreshed it
> >>>>>>changes the chart back to a standard line chart with only one Y axis. Is
> >>>>>>there any way to make my chart remain the way I want it after customization
> >>>>>>when the source pivot table is refreshed? Thanks!
> >>>>>
> >>>>>
> >>>>>--
> >>>>>Debra Dalgleish
> >>>>>Excel FAQ, Tips & Book List
> >>>>>http://www.contextures.com/tiptech.html
> >>>>>
> >>>>>

>
>

Reply With Quote
  #9  
Old 09-13-2005, 12:05 PM
Jon Peltier
Guest
 
Posts: n/a
Re: Pivot chart issue

The macro is called

Worksheet_PivotTableUpdate

which means it's an event of the Worksheet. Right click on the worksheet
tab, and select View Code from the pop up menu. The VB Editor opens, and
a code module appears with the sheet name in the title bar. In the left
dropdown at the top of the code module window, choose Worksheet, and in
the right dropdown, choose PivotTableUpdate. The code module now
contains an empty PivotTableUpdate procedure:

Private Sub Worksheet_PivotTableUpdate(ByVal Target As PivotTable)

End Sub

where Target is a variable passed into the procedure which refers to the
pivot table. Put the code into this procedure that you want to run when
the pivot table is updated. (Ignore or delete the empty
Worksheet_SelectionChange procedure.)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


Rav99 wrote:
> OK... Jon, thanks! I got that part now.. but how do I activate the macro to
> fix the pivot chart format by this event procedure. I created a pivot chart
> but when I changed the filter options, the chart type changes. I need to fix
> that as "line-column 2 axes" chart type. Thus what I did is to create a macro
> by activiate that chart type, but I don't know where to put the script for
> that macro and where to link that to the event procedure. Can you help?
>
> "Jon Peltier" wrote:
>
>
>>This event is available if you have Excel 2002 or later. Right click on the
>>worksheet tab of the worksheet with the pivot table, and select View Code. This
>>opens the VB Editor, with the code module for the worksheet activated. Select
>>Worksheet from the top left dropdown, then PivotTableUpdate from the top right
>>dropdown. (I'm only running Excel 2000 on this laptop, so I can't verify that this
>>works exactly right.)
>>
>>- Jon
>>-------
>>Jon Peltier, Microsoft Excel MVP
>>Peltier Technical Services
>>Tutorials and Custom Solutions
>>http://PeltierTech.com/
>>_______
>>
>>Rav99 wrote:
>>
>>>Hannes, can you give me more details how to do this? I am having the same
>>>problem... don't know how to assign that macro to the event procedure. Where
>>>should I do it? From the pivot table, or pivot chart tab?
>>>
>>>"Hannes" wrote:
>>>
>>>
>>>
>>>>Hi again,
>>>>
>>>>I found out how to do this.
>>>>
>>>>You can use an event called Worksheet_PivotTableUpdate to trigger a macro
>>>>that formats your charts.
>>>>
>>>>Regards
>>>>Hannes
>>>>
>>>>
>>>>"Hannes" wrote:
>>>>
>>>>
>>>>
>>>>>Hello there,
>>>>>
>>>>>I'm dealing with exactly the same problem.
>>>>>I have a macro that I want to run every time that the pivot table is changed.
>>>>>How can I make the pivot table run the macro when it's updated?
>>>>>Anyone?
>>>>>
>>>>>Reg. Hannes
>>>>>
>>>>>
>>>>>"James" wrote:
>>>>>
>>>>>
>>>>>
>>>>>>Thanks for the info. I thought I was going to go crazy! Another fabulous
>>>>>>Microsoft "feature".
>>>>>>
>>>>>>"Debra Dalgleish" wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>This is a known problem with PivotCharts. There's information in the
>>>>>>>following MSKB article, which suggests recording a macro as you apply
>>>>>>>the formatting:
>>>>>>>
>>>>>>>Changing a PivotChart Removes Series Formatting in Excel
>>>>>>> http://support.microsoft.com/?id=215904
>>>>>>>
>>>>>>>
>>>>>>>James wrote:
>>>>>>>
>>>>>>>
>>>>>>>>I have created a line chart with two Y axises based off of a pivot table.
>>>>>>>>After the chart is created I customize the text, colors and line widths the
>>>>>>>>way I want it as well as remove the pivot fields and then save it as the
>>>>>>>>default chart style. However, whenever the pivot table is refreshed it
>>>>>>>>changes the chart back to a standard line chart with only one Y axis. Is
>>>>>>>>there any way to make my chart remain the way I want it after customization
>>>>>>>>when the source pivot table is refreshed? Thanks!
>>>>>>>
>>>>>>>
>>>>>>>--
>>>>>>>Debra Dalgleish
>>>>>>>Excel FAQ, Tips & Book List
>>>>>>>http://www.contextures.com/tiptech.html
>>>>>>>
>>>>>>>

>>
>>

Reply With Quote
Reply

Bookmarks

New topics in Excel Charting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 08:22 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0