I have used a macro that plot graphs from masses of data then formats the graphs for going straight into reports. When i recorded the macros i plotted the graphs in a particualr order, therefore if i run the macros in another order it doesnt work since the chart numbers are wrong. see code below:
ActiveChart.HasLegend = False
ActiveSheet.Shapes("Chart 2").IncrementLeft 137.25
What i dont understand is why it cant just use the activeChart function for the incrementleft function, rather than activesheet which requires a chart name - e.g. Chart 2 meaning that my graphs have to be plotted in a specific order.
Thanks
Chris Dall
ActiveChart.HasLegend = False
ActiveSheet.Shapes("Chart 2").IncrementLeft 137.25
What i dont understand is why it cant just use the activeChart function for the incrementleft function, rather than activesheet which requires a chart name - e.g. Chart 2 meaning that my graphs have to be plotted in a specific order.
Thanks
Chris Dall