Hey guys,
since I am a real loser at using range, I gotta ask you the following.
I want to create a chart from an area of data. Please see the following code and tell me what I am doing wrong.
Many thanks!
since I am a real loser at using range, I gotta ask you the following.
I want to create a chart from an area of data. Please see the following code and tell me what I am doing wrong.
Many thanks!
Code:
' variables
Dim AAAA as Worksheet
Dim BBBB as Range
'requested range
[COLOR=#000000]Range("A4").Select
[/COLOR][COLOR=#000000]Range(Selection, Selection.End(xlToRight)).Select
[/COLOR][COLOR=#000000]Range(Selection, Selection.End(xlDown)).Select
[/COLOR]
Set AAAA = ActiveSheet
Set BBBB = Selection
Charts.Add
ActiveChart.ChartType = xlLine
ActiveChart.SetSourceData Source:=AAAA.BBBB, _ 'my problem
[COLOR=#000000]'etc etc etc
[/COLOR]
Last edited: