Hi all,
I'm writing a VBA macro in Excel (2007) to generate a series of plots. This macro is intended to get iterated across numerous sheets and workbooks. Because of this, I need the macro be generalized and the only stumbling block I'm encountering right now is that Excel is forcing me to specify a sheet name when listing series names & x/y values. I have tried a number of different approaches but am still unable to find a way to have Excel use the active sheet so the macro can be applied to any sheet/workbook. I've seen some ways to define an activesheet as a variable and apply that, but nothing still seems to work within a chart series.
So, in summary, how might I be able to reference the active sheet in a chart series so I can apply the generalized macro to any sheet?
Thanks for reading this!
I'm writing a VBA macro in Excel (2007) to generate a series of plots. This macro is intended to get iterated across numerous sheets and workbooks. Because of this, I need the macro be generalized and the only stumbling block I'm encountering right now is that Excel is forcing me to specify a sheet name when listing series names & x/y values. I have tried a number of different approaches but am still unable to find a way to have Excel use the active sheet so the macro can be applied to any sheet/workbook. I've seen some ways to define an activesheet as a variable and apply that, but nothing still seems to work within a chart series.
So, in summary, how might I be able to reference the active sheet in a chart series so I can apply the generalized macro to any sheet?
Thanks for reading this!