jim may
Well-known Member
- Joined
- Jul 4, 2004
- Messages
- 7,486
When I get to line "co Activate" - I get RT Error '-214702... - (80070057)
Requested Shapes are locked for selection. How do I Correct this?
Requested Shapes are locked for selection. How do I Correct this?
Code:
Sub BringUpChart()
Dim co As ChartObject
Dim ch As Chart
Set co = ActiveSheet.ChartObjects("MyChart")
'Set ch = co.Chart
CRow = ActiveCell.Row
Set CRange = Application.Union(Range("B" & CRow), Range("C" & CRow), Range("M" & CRow))
co.Activate
co.SetSourceData Source:=CRange, PlotBy:=xlRows
End Sub