Active X Objects in worksheet problems

gjp55

New Member
Joined
Mar 31, 2011
Messages
34
Hi,

I have problem regarding Active X boxes in a worksheet. I will be working on the code and click the save button which works fine. The problem comes when I close the workbook (even if I select no to saving changes). I get object errors on various listboxes where it can not fine the listbox object. I have the excel spreadsheet saved a various stages of development where the early versions save on but as soon as I go into the code , this can set the errors off when I come to close the file.

I have been reading a few posts about problems with Excel worksheets and active x objects and how they dont work well together.

I have tried somebody else running the file on another pc and they still get the error.

Does anybody have any idea have any idea how to solve this ?
I can provide a sample of the file it this helps ?

Thanks
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Sounds to me like a code problem rather than an activex problem. If you click Debug-Compile in the VBEditor, do you get error messages?
 
Upvote 0
Hi Rory,
Yes the code compiles fine.
Im getting pretty desperate to fix this now.
Thanks
gjp55
 
Upvote 0
Do you have any code in the BeforeClose event? Are the activex controls bound to ranges on sheets directly (e.g. using ListFillRange or LinkedCell)?
 
Upvote 0
And which code is running when the error occurs? (a listbox click/change event?)
Do you specifically need ActiveX controls rather than Forms ones?
 
Upvote 0
I have just tried this without populating the listboxes and i get if I close, i get a compile error stopping at the first label being referenced in the code. It:confused: doesn't think the label exists ?
 
Upvote 0
What label and what code?
 
Upvote 0
I guess if I this issue cant be resolved then i will have to try the form control listboxes. Are there any limitations with these ?
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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