Forum Discussion
murugans1011
12 years agoRegular Contributor
As Ivan suggested if u want to click random item. then u can get the max no.of combobox items and generate random integer to click random item something lik this
[VBScript]
max=combobox.wItemCount-1 'gets the total no.of items
min=0
Randomize
rndNo=(Int((max-min+1)*Rnd+min))
combobox.ClickItem(rndNo) 'Clicks the random item
[VBScript]
max=combobox.wItemCount-1 'gets the total no.of items
min=0
Randomize
rndNo=(Int((max-min+1)*Rnd+min))
combobox.ClickItem(rndNo) 'Clicks the random item