Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey
I want to have a code run when a user selects any item in my listbox (Listbox1). How can I make this happen? Thanks Todd Huttenstine |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Get the Listbox_Click event.
-- HTH Bob Phillips "Todd Huttenstine" wrote in message oups.com... Hey I want to have a code run when a user selects any item in my listbox (Listbox1). How can I make this happen? Thanks Todd Huttenstine |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Assuming it's a listbox on a worksheet, then right-click on it in
design mode and select 'view code' from the context menu. That will launch the VBA IDE and create a Listbox1_Change event procedure. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You need to use the Click event of the ListBox. E.g.,
Private Sub ListBox1_Click() MsgBox "You clicked: " & Me.ListBox1.Value End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Todd Huttenstine" wrote in message oups.com... Hey I want to have a code run when a user selects any item in my listbox (Listbox1). How can I make this happen? Thanks Todd Huttenstine |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding item in listbox | Excel Worksheet Functions | |||
Adding item in listbox | Excel Worksheet Functions | |||
Selecting an Item from a List and getting a different item to pop. | Excel Worksheet Functions | |||
The value of a ListBox Item | Excel Programming | |||
Is refreshing listbox rowsource in listbox click event possible? | Excel Programming |