K
Kohai
Hi,
I'm creating a series of charts based on data in many
adjacent columns based on Name defined Ranges. However,
I have to hardcode the Workbook and Sheet names that are
used for the source names. My piece of code is:
With ChtObj.Chart.SeriesCollection(jbl)
.Values = "=Book3.xls!Sheet1_COL_" & ColAry(z)
.XValues = "=Book3.xls!Sheet1_Date"
End With
I want the code to handle the workbook & sheet names more
dynamically to accept a variable for wbk name or sheet
name (or number). I can't get any syntax to work.
Experts Help!
Thank you.
Kohai
I'm creating a series of charts based on data in many
adjacent columns based on Name defined Ranges. However,
I have to hardcode the Workbook and Sheet names that are
used for the source names. My piece of code is:
With ChtObj.Chart.SeriesCollection(jbl)
.Values = "=Book3.xls!Sheet1_COL_" & ColAry(z)
.XValues = "=Book3.xls!Sheet1_Date"
End With
I want the code to handle the workbook & sheet names more
dynamically to accept a variable for wbk name or sheet
name (or number). I can't get any syntax to work.
Experts Help!
Thank you.
Kohai