[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

Multiple Listbox setfocus problem

excel 2003 Userform
vba..

I have 4 listboxes on a userform.
LISTBOX1 TO LISTBOX4
I need only ONE of the listboxes to have a selection made at any given time.

So if I have made as selection in listbox1 and then I click into listbox2  I dont want to have a selection made in listbox1 or listbox3  or listbox4...

Thanks
fordraiders





0
Fordraiders
Asked:
Fordraiders
1 Solution
 
Rory ArchibaldCommented:
Use the Click event of each to set the Listindex of the other three to -1.
0
 
FordraidersAuthor Commented:
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now