Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Excel Error on  ActiveSheet.ChartObjects("Chart 1""").Activate

Posted on 2011-02-20
2
Medium Priority
?
1,304 Views
Last Modified: 2012-05-11
Hi Experts,

How to fix this?
The image below shows the error I get when the macro attempts the line:
ActiveSheet.ChartObjects("Chart 1""").Activate
"Chart 1" is shown on the worksheet, as can be seen,
yet the macro cannot find it (stupid macro).
Google shows this is a common question, yet I haven't found a answer.

 Chart 1 shown, but not found, what gives?
0
Comment
Question by:AndyPandy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 50

Accepted Solution

by:
Dave Brett earned 2000 total points
ID: 34940054
Normally it would be

ActiveSheet.ChartObjects("Chart 1").Activate
in single quotes, not "Chart"""

Else pls post your file

Cheers

Dave
0
 

Author Closing Comment

by:AndyPandy
ID: 34940153
Yes,  I found that same thing just after posting the question.  
The Macro recorder put those extra quotes in,  I do not know why.
Thank you
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This article describes a serious pitfall that can happen when deleting shapes using VBA.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question