Jan 27, 2004 #1 Kendel Programmer Apr 24, 2002 1,512 US Hello all, Can you show me how to loop thru the length of a listbox to select all items? (In VBScript please) Thanks.
Hello all, Can you show me how to loop thru the length of a listbox to select all items? (In VBScript please) Thanks.
Jan 28, 2004 Thread starter #2 Kendel Programmer Apr 24, 2002 1,512 US Nervermind I found the answer. Thank you room. Upvote 0 Downvote
Jan 28, 2004 #3 PHV MIS Nov 8, 2002 53,708 FR Kendel, thanks for sharing. Can you close this thread with the answer you've found ? Upvote 0 Downvote
Jan 28, 2004 Thread starter #4 Kendel Programmer Apr 24, 2002 1,512 US Here is how I select all items in a listbox: For i=0 to document.form1.list1.length -1 document.form1.list1.options(i).selected = true Next Upvote 0 Downvote
Here is how I select all items in a listbox: For i=0 to document.form1.list1.length -1 document.form1.list1.options(i).selected = true Next
Mar 16, 2004 #5 shawn876 Programmer Feb 19, 2004 17 US Actually you can try this to: dim opt for each opt in document.formname.comboboxname.options opt.selected = true next Thanks Upvote 0 Downvote
Actually you can try this to: dim opt for each opt in document.formname.comboboxname.options opt.selected = true next Thanks