Excel 2010 Assign Macro to Shape Error

I have a simple Excel file with 6 shapes on a sheet.  I need to assign macros to each shape.

The shapes are named A001, B001, B002, C001, C002, and C003.

I am able to successfully assign Macros to A001, B001 and B002.

Why can't I assign the macros to C001, C002 and C003 ?

Attached is an excel file with the shapes and the macros.
LVL 13
Jeff DarlingDeveloper AnalystAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saurabh Singh TeotiaCommented:

What i can find out that it's not able to refer to the name C001 to C003 correctly and giving a weird formula error..Now if i change the same to actual name it works without any problem which is diagram name and so on it does what you are looking for..

Enclosed is your workbook for your reference..


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I believe it is having a problem with the names of the C shapes being reserved words.
Renaming them fixes it either way.
Sorry, didn't see Saurabh had answered it.
Jeff DarlingDeveloper AnalystAuthor Commented:
workaround to rename the sub routines works.  curious what Microsoft was thinking here...
There are a bunch of "reserved" words and acronyms. Some obvious, some no so much.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.