Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the syntax to test if a sel

Status
Not open for further replies.

oddball

Technical User
Mar 17, 2000
64
GB
What is the syntax to test if a selection has been made in a listbox? I want to execute a sub when clicking a button, but only if they have selected a value in a listbox,

cheers,

si
 
Hey Oddball,

One thing you could do is check to see if the selected index is -1. Thats the index value set if nothing is selected.

Jack
 
Excellent,

thanks also for your advice to the earlier thread. Failed to respond cos i had decided upon a different approach, and have got it mostly working now.

thanks again ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top