R
r1024768
Hi
I have 3 lists on my UserForm, all initiated as follows
List.Clea
With Lis
.addItem "a
.addItem "b
etc
End Wit
At the very end, I have
List1.Value = "a
List2.Value = "b
List3.Value = "c
Msgbox List1.Value & List2.Value & List3.Valu
Currently List2.Value returns a blank - I've also had it switch to List
being blank between loads (no code touched, just saving, exporting t
test the form, and exiting before going back in
EDIT: After running it repeatedly without exiting, I find that it jus
seems to randomize between which ones show up at all even withou
exiting..
However, it registers the default value of the list selection
whichever value I set those lists to is what the list starts off havin
selected. It just doesn't seem to want to show the value in the Msgbox
and subsequently, anything I try to use that initial value in
Any clue what's going on
Exact Code
Code
-------------------
Private Sub UserForm_Initialize(
ListBox1.Clea
ListBox2.Clea
ListBox3.Clea
With ListBox
.AddItem "a
.AddItem "b
.AddItem "c
End Wit
With ListBox
.AddItem "a
.AddItem "b
.AddItem "c
End Wit
With ListBox
.AddItem "a
.AddItem "b
.AddItem "c
End Wit
ListBox1.Value = "b
ListBox2.Value = "c
ListBox3.Value = "a
MsgBox ListBox1.Value & ListBox2.Value & ListBox3.Valu
End Su
I have 3 lists on my UserForm, all initiated as follows
List.Clea
With Lis
.addItem "a
.addItem "b
etc
End Wit
At the very end, I have
List1.Value = "a
List2.Value = "b
List3.Value = "c
Msgbox List1.Value & List2.Value & List3.Valu
Currently List2.Value returns a blank - I've also had it switch to List
being blank between loads (no code touched, just saving, exporting t
test the form, and exiting before going back in
EDIT: After running it repeatedly without exiting, I find that it jus
seems to randomize between which ones show up at all even withou
exiting..
However, it registers the default value of the list selection
whichever value I set those lists to is what the list starts off havin
selected. It just doesn't seem to want to show the value in the Msgbox
and subsequently, anything I try to use that initial value in
Any clue what's going on
Exact Code
Code
-------------------
Private Sub UserForm_Initialize(
ListBox1.Clea
ListBox2.Clea
ListBox3.Clea
With ListBox
.AddItem "a
.AddItem "b
.AddItem "c
End Wit
With ListBox
.AddItem "a
.AddItem "b
.AddItem "c
End Wit
With ListBox
.AddItem "a
.AddItem "b
.AddItem "c
End Wit
ListBox1.Value = "b
ListBox2.Value = "c
ListBox3.Value = "a
MsgBox ListBox1.Value & ListBox2.Value & ListBox3.Valu
End Su