Controls Collection not working in Excel 2003

sandomingo

New Member
Joined
Jan 16, 2012
Messages
2
Hi guys,

I wrote some code using Controls Collection, let's say:

Code:
UserForm1.Controls("cbBeg" & sTag & c).Value = wsTasks.Cells(iWiersz, b).Text
This code works in Excel 2007 I've tested it also in 2002 and 2003. But when I sent my application to another Excel 2003 user he's got Runtine Error at every use of Controls Collection.
Do you have idea why it happens?
 
What's the full error message?

Are you sure it's the Controls collection causing it?
 
Upvote 0
The error is: Run-time error ‘- 2147024809 (80070057)’: Could not find the specified object.

Excel version: 2003.118231.8221

The same file with the same code works on other Excel versions.
 
Upvote 0
Is the reference to the form controls library present/active ?

VBEditor/menubar/extra/references
 
Upvote 0

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