Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
find name of a chart
I am writing some vba code in Excel 2003 to use the histogram function
to make histograms of data in a number of different worksheets. I would like to delete all existing charts in a worksheet and then create a histogram and then modify its properties. I have: Application.Run "ATPVBAEN.XLA!Histogram",ActiveSheet.Range("$D$2:$ D$733") _ , ActiveSheet.Range("$K$2"), ActiveSheet.Range("$J$3:$J$21"), False, False _ , True, False ActiveSheet.ChartObjects("Chart 1").Activate ActiveChart.ChartArea.Select ActiveSheet.Shapes("Chart 1").ScaleHeight 2.98, msoFalse, msoScaleFromTopLeft ActiveChart.Legend.Select Selection.Delete If there is an existing chart in the worksheet, this fails at ActiveSheet.ChartObjects("Chart 1").Activate so I would like to know how to get the name of the chart created by the histogram. Could anyone help please? Thanks Chris |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Find source WS from Chart | Excel Programming | |||
find no fill series in chart | Excel Discussion (Misc queries) | |||
how can i find the relation between x & y in chart | Charts and Charting in Excel | |||
Chart how to find lastrow? | Excel Programming | |||
Does "find and replace" work within a chart? | Charts and Charting in Excel |