bonzodog1990
New Member
- Joined
- Aug 26, 2011
- Messages
- 14
Hi All!
So basically I have a combobox in a userform that I want to be populated by information in a spreadsheet. Easy enough right? Apparently not. I thought the syntax for this was something like:
with *combobox1*
.additem "thing1"
.additem "thing2"
End with
And that works fine, but I want to use pre specified ranges, which i think I've declared properly like this:
dim ccy as range
set ccy as Range("cell1:cell2")
But when I try and use that range to populate my box, none of the syntax's i've found online seem to work. Can you suggest anything?
Additionally, I have this weird bug where I can use identical code for different userforms and it works for some not others. Like, I have a correctly populated combobox written on a test form, and put the same code on my real form, and it doesn't work. Only the names change. I'll screengrab that at work if it makes no sense, but any suggestions appreciated!
Cheers all
So basically I have a combobox in a userform that I want to be populated by information in a spreadsheet. Easy enough right? Apparently not. I thought the syntax for this was something like:
with *combobox1*
.additem "thing1"
.additem "thing2"
End with
And that works fine, but I want to use pre specified ranges, which i think I've declared properly like this:
dim ccy as range
set ccy as Range("cell1:cell2")
But when I try and use that range to populate my box, none of the syntax's i've found online seem to work. Can you suggest anything?
Additionally, I have this weird bug where I can use identical code for different userforms and it works for some not others. Like, I have a correctly populated combobox written on a test form, and put the same code on my real form, and it doesn't work. Only the names change. I'll screengrab that at work if it makes no sense, but any suggestions appreciated!
Cheers all