# Question : Dropdown list populating code not working

## Answer : Dropdown list populating code not working

##### try removing the End If as follow:      ' Sort the characters into order, lowest to highest, for each dropdown      If (vRand1>vRand2 And vRand1>vRand3) Then vCheck1 = vRand1            ElseIf (vRand1>vRand2 And vRand1<vRand3) Then vCheck2 = vRand1            ElseIf (vRand1>vRand3 And vRand1<vRand2) Then vCheck2 = vRand1            ElseIf (vRand1<vRand2 And vRand1<vRand3) Then vCheck1 = vRand1            If (vRand2>vRand1 And vRand2>vRand3) Then vCheck2 = vRand2            ElseIf (vRand2>vRand1 And vRand2<vRand3) Then vCheck2 = vRand2            ElseIf (vRand2>vRand3 And vRand2<vRand1) Then vCheck2 = vRand2            ElseIf (vRand2<vRand1 And vRand2<vRand3) Then vCheck1 = vRand2            If (vRand3>vRand1 And vRand3>vRand2) Then vCheck3 = vRand3            ElseIf (vRand3>vRand1 And vRand3<vRand2) Then vCheck2 = vRand3            ElseIf (vRand3>vRand2 And vRand3<vRand1) Then vCheck2 = vRand3            ElseIf (vRand3<vRand1 And vRand3<vRand2) Then vCheck1 = vRand3
 Random Solutions