Solved

"Cannot Insert Object" when adding Excel ActiveX Control Button

Posted on 2012-04-05
6
11,919 Views
Last Modified: 2012-04-06
I am trying to add an ActiveX control button to a spreadsheet that already contains activeX controls.  I am getting the error message "Cannot Insert Object".

Does anyone know how to allow the insertion of ActiveX components?

Thanks!
0
Comment
Question by:billelev
[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
  • 4
  • 2
6 Comments
 
LVL 42

Expert Comment

by:dlmille
ID: 37814054
Are you doing it on a protected sheet?  If so, then unprotect.

Can you add that control to a new workbook's active sheet?

If not, are you trying to do it manually or via VBA?

Finally, exactly which control are you adding?
0
 

Author Comment

by:billelev
ID: 37814168
It's not a protect sheet

I cannot add it to a new sheet

I'm trying to add manually

None of the ActiveX controls are able to be added, but the control I want to add is a Command Button.
0
 
LVL 42

Expert Comment

by:dlmille
ID: 37814246
Can you add on a new workbook?
0
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 
LVL 42

Accepted Solution

by:
dlmille earned 300 total points
ID: 37814362
It would be useful to know if you can add controls to a new workbook, right after opening Excel 2010.

However, please respond to the following which hopefully will help resolve the problem.

1.  Have you had a recent Office upgrade?  Here's one possible solution:

Try clearing out all the files and folders in the user TEMP directory. If there are older controls in there from previous use, that particular error "Cannot Insert Object" may occur.

2.  Whether you've upgraded or not (and given you have 2010, its likely), perhaps an Office repair is in order:

In Office 2010 the Detect and Repair option has been removed from within the office products.

To run a repair > open control panel > programs and features (add/remove programs in XP) > find MS Office 2010 > select change button > select repair.

Please advise whether this is successful or not.  After doing the repair and reboot (if necessary) just open Excel and try to add the command button control.  Was that successful?  Then try with the workbook that's giving you problems.

Cheers,

Dave
0
 

Author Comment

by:billelev
ID: 37816525
Dave, I can indeed add the controls when a new workbook is opened.  It therefore appears to be an issue with the workbook already in existence.  and actually, I just tried the original sheet, and this time it worked.  So it must have been that the sheet I had opened had been corrupted somehow.
0
 
LVL 42

Expert Comment

by:dlmille
ID: 37816968
That's where my mind is at.  If you can do it with other workbooks, then the workbook you're working on may be headed towards corruption.  Suggest making backups periodically and be prepared to have to rebuild it in the future.

Glad its resolved at least at this point.

Dave
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

690 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