Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have recorded a macro in Excel whereby I create a pie chart using
the Chart Wizard. In Page 3 of the Chart Wizard, I click on the "Data Labels" tab. Then I check the "Category Name" and "Value" boxes. However, when I run the macro, the finished chart does not show either Category Names or Values. You will see from the code that it doesn't even show up. Range("A4:B9").Select Charts.Add ActiveChart.ChartType = xlPie ActiveChart.SetSourceData Source:=Sheets("Test Spreadsheet").Range("A4:B9"), _ PlotBy:=xlColumns ActiveChart.Location Whe=xlLocationAsNewSheet, Name:="Statistics" With ActiveChart .HasTitle = True .ChartTitle.Characters.Text = _ "Statistics" End With ActiveChart.HasLegend = False Any ideas? Kind regards Ian M |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macros behind charts | Charts and Charting in Excel | |||
Formatting Charts Using Macros | Excel Discussion (Misc queries) | |||
make macros in charts | Charts and Charting in Excel | |||
How do I update charts using macros | Charts and Charting in Excel | |||
Macros & pie charts | Charts and Charting in Excel |