Hello group,
Instead of :
ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range(strSelectedRange), PlotBy:=xl3DColumn
I like to use:
ActiveChart.SetSourceData Source:=ACTIVESHEET.Range(strSelectedRange), PlotBy:=xl3DColumn
but it the VB compiler complains that this doesn't support the method !!!
How can I solve this limitation? maybe I'm using a WorkBook that doesn't have sheet1 or it is renamed. Then what?!
Regards,
ak
ActiveWorkbook.ActiveSheet
Instead of this:
ActiveSheet