Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem using VBA with Excel 2007 Chart

Status
Not open for further replies.

chevyv8

MIS
Apr 19, 2004
14
GB
Please help,
I have upgraded to Office 2007 and one of my Excel reports no longer works, the problem is I cant select an Option Button on a chart using VBA.

This is the code and line 2 fails with:
Run-time error '-2147024809 (80070057)
The item with the specified name was not found

Sheets("Chart1").Select
ActiveChart.Shapes("Option Button 1").Select
With Selection
.Value = xlOn
.LinkedCell = ""
.Display3DShading = False
End With

This will work if I create a chart on a sheet but not on a chart.
I also considdered using an ActiveX Option Button but that was greyed out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top