SlinkRN
Well-known Member
- Joined
- Oct 29, 2002
- Messages
- 724
Hi all!! I have a list of 6 names. Out of those 6 names, only 4 will be valid. The valid names need to populate 4 labels on my userform. I have code that determines if a name is valid, but I'm going blank on how I get those 4 valid names to populate only 4 available labels.
So, if Bowler1 = "Good" then that name would go to lbl1.caption
If Bowler2 = "Good" then that name would go to lbl2.caption but if lbl1 is still empty it should go to lbl1.caption
If Bowler3 = "Good" then that name would go to lbl3.caption unless lbl1 and/or lbl2 are empty
and on and on until the 4 "Good" names populate the 4 labels.
I'm sure there's a loop here but I must be rusty with my loops because I just can't get my head around this one.
Can someone help? Thanks, Slink
So, if Bowler1 = "Good" then that name would go to lbl1.caption
If Bowler2 = "Good" then that name would go to lbl2.caption but if lbl1 is still empty it should go to lbl1.caption
If Bowler3 = "Good" then that name would go to lbl3.caption unless lbl1 and/or lbl2 are empty
and on and on until the 4 "Good" names populate the 4 labels.
I'm sure there's a loop here but I must be rusty with my loops because I just can't get my head around this one.
Can someone help? Thanks, Slink