Hi all,
I am working with some worksheet combo boxes and I am having troubles with loading values into them using a loop. The code:Can anyone tell me why this is be so darned stubborn?![]()
Please Login or Register to view this content.
Supashi-bo
Hi all,
I am working with some worksheet combo boxes and I am having troubles with loading values into them using a loop. The code:Can anyone tell me why this is be so darned stubborn?![]()
Please Login or Register to view this content.
Supashi-bo
Last edited by Mordred; 07-25-2011 at 09:57 AM.
If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.
---Keep on Coding in the Free World---
Hi Mordred,
Unless your code is in the worksheet's class module, you'll also need to qualify the OLEObjects property, eg.![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Assuming they are ActiveX comboboxes.
Everyone who confuses correlation and causation ends up dead.
They are ActiveX comboboxes. Thanks guys, I will try this right now!
That fixed it Colin, thank you!was the answer!![]()
Please Login or Register to view this content.
Much appreciated!
Michael
You don't need any loop.
You'd better avoid additem to populate comboboxes/listboxes.
![]()
Please Login or Register to view this content.
Last edited by snb; 07-25-2011 at 09:54 AM.
Hi snb, why avoid .AddItem? Here is the code for a combobox clear and then refill that I am troubled by:![]()
Please Login or Register to view this content.
Last edited by Mordred; 07-25-2011 at 10:16 AM.
Additem isn't designed for populating listboxes/comboboxes; .list is. And additem is terribly slooooooow...
If you use .List you won't need to use .clear, because .list replaces the Listbox's whole content.
This suffices:
![]()
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks