VBA - Userform - ComboBox changing contents to number

The Great SrH

Board Regular
Joined
Jan 16, 2015
Messages
179
Hi,

I have a userform with multiple comboboxes on, but i'm having trouble with one in particular.


When clicking the drop down, it lists the two items from the named range. But when i select an item, the userform will then show either 0 or 1 (rather than the words "Single" or "Multiple" from the drop down).


It's weird because all comboboxes have the same settings and code, but this one seems to do it's own thing.


Any ideas?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
0 and 1 could be
- False & True OR
- more likely here,the array index number for the selected item
- is it always 0 when first item selected and 1 when it's the 2nd item ?

I do not know why you are experiencing this behaviour but (given that you have comboboxes that behave correctly) ...
- copy\paste a "well-behaved" combobox
- attribute the correct range for its list of items

What happens?
 
Upvote 0
0 and 1 could be
- False & True OR
- more likely here,the array index number for the selected item
- is it always 0 when first item selected and 1 when it's the 2nd item ?

I do not know why you are experiencing this behaviour but (given that you have comboboxes that behave correctly) ...
- copy\paste a "well-behaved" combobox
- attribute the correct range for its list of items

What happens?
Not sure why I didn't try that haha! It worked - thank you!! :)
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,624
Latest member
gregg777

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