Object doesn't support this ......
-
- 5StarLounger
- Posts: 1185
- Joined: 24 Jan 2010, 12:02
- Location: Wales, UK.
Object doesn't support this ......
Please, what am I doing wrong here.
You do not have the required permissions to view the files attached to this post.
Nathan
There's no place like home.....
There's no place like home.....
-
- 5StarLounger
- Posts: 1185
- Joined: 24 Jan 2010, 12:02
- Location: Wales, UK.
Re: Object doesn't support this ......
The chart activates but I get the rte on all three of the following commands.
Nathan
There's no place like home.....
There's no place like home.....
-
- Administrator
- Posts: 78488
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Object doesn't support this ......
SetSourceData and SeriesCollection don't apply to a ChartObject (which is basically a shape object) but to the Chart contained in the ChartObject.
You probably don't need to activate the chart to manipulate it, so try
You probably don't need to activate the chart to manipulate it, so try
Code: Select all
With ActiveSheet.ChartObjects("Chart 5").Chart
.SetSourceData Source:=...
.SeriesCollection(1).Name = "Blue"
.SeriesCollection(2).Name = "Red"
End With
Best wishes,
Hans
Hans
-
- 5StarLounger
- Posts: 1185
- Joined: 24 Jan 2010, 12:02
- Location: Wales, UK.
Re: Object doesn't support this ......
Thanks Hans, that worked.
Nathan
There's no place like home.....
There's no place like home.....