ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Changing a PivotChart Removes Series Formatting (https://www.excelbanter.com/excel-programming/300034-changing-pivotchart-removes-series-formatting.html)

Vlado

Changing a PivotChart Removes Series Formatting
 
Hi everybody,


The loss of formatting is a known problem. There's some info in the
following MSKB article, which suggests using a macro to reformat the table
as required: XL2000: Changing a PivotChart Removes Series Formatting
(Q215904) .
http://support.microsoft.com/default...;EN-US;Q215904

Question:
Is it possible to automatically run macro after changing PivotTable,
instead of run macro manually every time you change PivotTable?


Regards,
Vlado



Debra Dalgleish

Changing a PivotChart Removes Series Formatting
 
If you have Excel 2002 or later, you can use the PivotTableUpdate event
to run the macro. For example:

Private Sub Worksheet_PivotTableUpdate _
(ByVal Target As PivotTable)

'run the formatting macro
FormatPivot

End Sub


Vlado wrote:
Hi everybody,


The loss of formatting is a known problem. There's some info in the
following MSKB article, which suggests using a macro to reformat the table
as required: XL2000: Changing a PivotChart Removes Series Formatting
(Q215904) .
http://support.microsoft.com/default...;EN-US;Q215904

Question:
Is it possible to automatically run macro after changing PivotTable,
instead of run macro manually every time you change PivotTable?


Regards,
Vlado




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


keepITcool

Changing a PivotChart Removes Series Formatting
 
you're less likely to lose pivot table or chart formatting if you base the
pivot on a (dynamic) named range..


As long as you dont delete, but edit the name object, the pivot will not
notice that the "source object" has changed..

keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Vlado" wrote:

Hi everybody,


The loss of formatting is a known problem. There's some info in the
following MSKB article, which suggests using a macro to reformat the
table as required: XL2000: Changing a PivotChart Removes Series
Formatting (Q215904) .
http://support.microsoft.com/default...;EN-US;Q215904

Question:
Is it possible to automatically run macro after changing PivotTable,
instead of run macro manually every time you change PivotTable?


Regards,
Vlado





Vlado

Thanks Debra and keepitcool
 


It works perfectly.




All times are GMT +1. The time now is 01:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com