B
Barb Reinhardt
I have the following code that sets the Legend position for a chart object
For Each objCht In WS.ChartObjects
With objCht.Chart
.Legend.Position = xlLegendPositionBottom
End With
Next
It stops on the .legend.position line with the error
Run-time error '-217467259 (80004005)':
Method 'Position' of object 'Legend' failed.
But then I can step right through the code without a problem. What gives?
Thanks,
Barb Reinhardt
For Each objCht In WS.ChartObjects
With objCht.Chart
.Legend.Position = xlLegendPositionBottom
End With
Next
It stops on the .legend.position line with the error
Run-time error '-217467259 (80004005)':
Method 'Position' of object 'Legend' failed.
But then I can step right through the code without a problem. What gives?
Thanks,
Barb Reinhardt