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
Solved

"Cannot Insert Object" when adding Excel ActiveX Control Button

Posted on 2012-04-05
6
11,674 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
  • 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
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 the scrolling table in Microsoft Excel using the INDEX function.

809 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