Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Macro to format all pivotcharts in a workbook
You know how Pivotcharts lose their formatting when you refresh the pivot
table they are attached to? Well I set up a macro to re-format the charts, but my code only formats the currently selected chart. How can I change my code to update all the pivot charts in my workbook? Here's the code I have right now: ActiveChart.SeriesCollection(1).Select ActiveChart.SeriesCollection(1).ApplyDataLabels Type:=xlDataLabelsShowValue, _ AutoText:=True, LegendKey:=False ActiveChart.SeriesCollection(1).DataLabels.Select Selection.AutoScaleFont = False With Selection.Font .Name = "Arial" .FontStyle = "Bold" .Size = 12 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = 2 .Background = xlTransparent End With |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
PivotCharts and recalculating workbooks | Excel Discussion (Misc queries) | |||
Linking Multiple pivotcharts | Charts and Charting in Excel | |||
Dates in Excel PivotCharts | Charts and Charting in Excel | |||
Having an issue with some pivotcharts? | Charts and Charting in Excel | |||
PivotCharts (max cell/row limits)? | Charts and Charting in Excel |