B
Bill Hertzing
Our developers write out a .csv file, with row 1 being the strings for
the column titles. I can read these .csv files into a worksheet, so
that column 1, for example is titled "LogTime", and Column 10 is
TimeOnDisk. I can create a named range for each that covers just the
cells that are populated e.g.($A$2:$A$2280). I can use the Names
drop-down to verify the named ranges are correct. I have to do this,
because in the next release, the developers may add or delete columns
of data, but have promised to keep the column names. And the number of
rows varies by the number of days worth of .csv files that get read
in.
I want to create a macro to chart these two columns (using the named
ranges). My current 'best guess' is:
ActiveChart.SetSourceData Source:=Sheets(DSPage).Range(Names
_("LogTime").RefersToRange, Names("TimeOnDisk").RefersToRange) _
, PlotBy:=xlColumns
But this, nor a whole days worth of trying other combinations, has
turned up the successful incantation. I'd sure appreciate any ideas.
the column titles. I can read these .csv files into a worksheet, so
that column 1, for example is titled "LogTime", and Column 10 is
TimeOnDisk. I can create a named range for each that covers just the
cells that are populated e.g.($A$2:$A$2280). I can use the Names
drop-down to verify the named ranges are correct. I have to do this,
because in the next release, the developers may add or delete columns
of data, but have promised to keep the column names. And the number of
rows varies by the number of days worth of .csv files that get read
in.
I want to create a macro to chart these two columns (using the named
ranges). My current 'best guess' is:
ActiveChart.SetSourceData Source:=Sheets(DSPage).Range(Names
_("LogTime").RefersToRange, Names("TimeOnDisk").RefersToRange) _
, PlotBy:=xlColumns
But this, nor a whole days worth of trying other combinations, has
turned up the successful incantation. I'd sure appreciate any ideas.