Solved

"Cannot Insert Object" when adding Excel ActiveX Control Button

Posted on 2012-04-05
6
11,415 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 41

Expert Comment

by:dlmille
Comment Utility
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
Comment Utility
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 41

Expert Comment

by:dlmille
Comment Utility
Can you add on a new workbook?
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 41

Accepted Solution

by:
dlmille earned 300 total points
Comment Utility
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
Comment Utility
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 41

Expert Comment

by:dlmille
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Please help with my first pivot table 12 37
Excel - Row Height +1 VBA 2 23
Excel 6 16
Dynamic Vlookup Function Formula Help 4 13
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now