I am attempting to use a range variable to define the variable end point in a chart source and am confused by the debug messages I am getting. Here’s what I have so far:
Dim myEndCell As Range
Dim myChartSource As Range
Rows(“26:26”).Select
Selection.Find(What:=Sheets(“pivot”).Range(“h2”).Value, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False).Activate
ActiveCell.Select
Set myEndCell = ActiveCell.Offset(9, 0)
MsgBox myEndCell.Address
Set myChartSource = (“a33:&myendCell”) – My problem starts here
MsgBox myChartSource
Sheets(“TREND CHART G”).Select
ActiveSheet.ChartObjects(“Chart 3”).Activate
ActiveChart.ChartArea.Select
ActiveChart.SetSourceData Source:=Sheets(“GAME CHART SOURCE”).Range(myChartSource), PlotBy:=xlRows
Any solutions and advice on how to use range variables would be much appreciated.