Hi,
I have created 2 Names in Excel Name Manager like this
What I want is to populate 2 combobox from the same Names.Please Login or Register to view this content.
Your help would be greatly appreciated.
Best Regards
Imran Bhatti
Hi,
I have created 2 Names in Excel Name Manager like this
What I want is to populate 2 combobox from the same Names.Please Login or Register to view this content.
Your help would be greatly appreciated.
Best Regards
Imran Bhatti
Last edited by ImranBhatti; 09-04-2019 at 08:04 AM.
Teach me Excel VBA
Currently using this workaround but is there a way to directly populate lilke ComboBox.List = Abr
Please Login or Register to view this content.
You could put an array into the name:
then assign it like this:Please Login or Register to view this content.
though I'm not sure I see how that's a real improvement.Please Login or Register to view this content.
Rory
That did the trick Rory.
Much appreciated indeed
Sorry for marking the thread "Unsolved" again.
at first I actually assign the [Abr] to an array which was successful but while trying to directly assign it to combobox's .list it says
"Could not the list property.invalid property index"
That tends to mean that your variable is not actually an array.
occures when I directly assign the name to combobox like this"Could not the list property.invalid property index"
ComboBox.List = [Abr]
But when I do this
AnArray = [Abr]
it does contain values of "Abr" if I add a watch on "AnArray"
This seems to work for me (if I understand correctly).
Please Login or Register to view this content.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks