By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,627 Members | 1,916 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,627 IT Pros & Developers. It's quick & easy.

Was the item selected or deselected?

P: n/a
In a simple multiselect listbox, what is the code for the AfterUpdate event to
determine if the item clicked on was selected or deselected?

Thanks!

Sally
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Sally" <sm*****@earthlink.net> wrote in message
news:JR****************@newsread2.news.atl.earthli nk.net...
In a simple multiselect listbox, what is the code for the AfterUpdate event to determine if the item clicked on was selected or deselected?


the ListBox uses a zero-based array, but I believe that if you have Col
Heads set to true then you use an array beginning with "1" and not zero.

for x = 1 to listBoxName.ListCount - 1
if listBoxName.Selected(x) = False then
msgbox("Yeah, it's selected!!!)
end if
next x
Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.