Hi,
I have query in access that i output in excel and want to graph the output. I have written the code for this in access -> visual basic
i want the code to get the range of the xvalues and the yvalues from the output query results in excel sheet and graph column B vs Column A...
For the graphing part of the code this is what i have:
' Create a new chart.
Set xlChartObj = xlApp.Charts.Add
With xlChartObj
' Specify chart type as 3D.
.ChartType = xlLineMarkers ' Set the range of the chart.
.SetSourceData Source:=xlSourceRange
'_____________________________________________________
.SeriesCollection.NewSeries
.SeriesCollection(1).XValues = HOW DO I GET THE RANGE OF THE XVALUES thats in column A of the excel sheet???
.SeriesCollection(1).Values = HOW DO I GET THE Y values that is column B???
'______________________________________________________
' Specify that the chart is located on a new sheet.
.Location Where:=xlLocationAsNewSheet
ANy help will me much appreciated.
THANKS!!
I have query in access that i output in excel and want to graph the output. I have written the code for this in access -> visual basic
i want the code to get the range of the xvalues and the yvalues from the output query results in excel sheet and graph column B vs Column A...
For the graphing part of the code this is what i have:
' Create a new chart.
Set xlChartObj = xlApp.Charts.Add
With xlChartObj
' Specify chart type as 3D.
.ChartType = xlLineMarkers ' Set the range of the chart.
.SetSourceData Source:=xlSourceRange
'_____________________________________________________
.SeriesCollection.NewSeries
.SeriesCollection(1).XValues = HOW DO I GET THE RANGE OF THE XVALUES thats in column A of the excel sheet???
.SeriesCollection(1).Values = HOW DO I GET THE Y values that is column B???
'______________________________________________________
' Specify that the chart is located on a new sheet.
.Location Where:=xlLocationAsNewSheet
ANy help will me much appreciated.
THANKS!!