ActiveX Control changing name in Excel when loaded on another computer

mcava

New Member
Joined
Jun 2, 2015
Messages
14
Hello all,

I am having trouble using a vba code I created in excel on other computers. The code contains several controls that performs calculations based on certain textbox inputs. It works flawlessly on my computer, however fails to operate when I load it on a coworkers computer.

I have played with the macro security settings on the other computer and have ensured macro and ActiveX control settings are enabled. I then thought it was how I was saving the file, however the full code is available on the other computer's visual basic. I have found that the Textboxes have changed back to their default names (ex. a textbox i have named "search" has changed back to "textbox1") which has unlinked the control to the macro. However, I can't find an explanation to why it's doing this. I have also tried to play with the control properties, but with no success.

I'm sure there is a simple solution to this, but I'm pretty new to using vba and can't seem to find a solution.

Thanks in advance and any help is appreciated!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi and welcome to the forum.

If this is your situation:
  • ActiveX controls on a worksheet
  • Saved the workbook with Excel 2007 or later as .xlsm
  • Opened the workbook with Excel 2003 w\compatibility pack

Then this is a known issue and it is by design.
Files with ActiveX Controls that are saved in Office 2007 format change to images when opened in Office 2003 with the compatibility pack installed

The quick solution is to save the workbook (using Excel 2007 or later) with the .xls file format. Alternately, switch to Form-type controls.
 
Upvote 0
Thanks AlphaFrog,

The other computers I'm trying to open the workbook on are also Excel 2010, so they should be compatible. Also, saving it as an .xls will disable my macros no?
If there are no other ideas I may just switch them over to form controls.
 
Upvote 0
I suspect you've fallen foul of the ongoing saga with Microsoft patches that wrecked activex controls. If you can replace them with Form controls, I suggest you do so. (I'd always use them in preference where possible anyway)
 
Upvote 0
Thanks AlphaFrog,
You're welcome.

The other computers I'm trying to open the workbook on are also Excel 2010, so they should be compatible.
Yes they should.

Also, saving it as an .xls will disable my macros no?
No. The older .xls file format supports macros. Give it a try. See what happens.

If there are no other ideas I may just switch them over to form controls.
I default to using the Form controls unless I need a specific feature available only from an ActiveX control.
 
Upvote 0
Thank you for the replies,

I had no success saving it in the xls. format. Is there a fast way to convert ActiveX controls to form controls? Just because I already have multiple ActiveX Textboxes made.
 
Upvote 0

Forum statistics

Threads
1,207,423
Messages
6,078,443
Members
446,338
Latest member
AliB

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top