K
kate
I have been trying for days to get the following to work. I hav
created a
chart in Excel with named ranges. I have created a range for th
entire sou
rce data. When I try to reference it in Access, it reads in the rang
as th
e value and not the actual range, thus it does not work.any thoughts?
I kn
ow I can do this if I set the named ranges up for the series, but
wanted t
o do it for the entire source data instead..(for other reasons that ar
too
complex to go into!)
here is my code:
Set xlschart = CreateObject("Excel.Chart")
Set xlschart = xlswkrbk.charts("xchart")
xlsapp.Visible = False
xlschart.SetSourceData Source:=xlswkrbk.names("xmr")
if I type in the following in the immediate window of the debugger thi
is w
hat it returns for the range:
?xlswkrbk.names("xmr")
=OFFSET(XmRData3!$A$1,0,0,COUNT(XmRData3!$A:$A)+1,8
-
kat
created a
chart in Excel with named ranges. I have created a range for th
entire sou
rce data. When I try to reference it in Access, it reads in the rang
as th
e value and not the actual range, thus it does not work.any thoughts?
I kn
ow I can do this if I set the named ranges up for the series, but
wanted t
o do it for the entire source data instead..(for other reasons that ar
too
complex to go into!)
here is my code:
Set xlschart = CreateObject("Excel.Chart")
Set xlschart = xlswkrbk.charts("xchart")
xlsapp.Visible = False
xlschart.SetSourceData Source:=xlswkrbk.names("xmr")
if I type in the following in the immediate window of the debugger thi
is w
hat it returns for the range:
?xlswkrbk.names("xmr")
=OFFSET(XmRData3!$A$1,0,0,COUNT(XmRData3!$A:$A)+1,8
-
kat