Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Listboxes on worksheets
I'm using the following code to place a pop-up listbox on the worksheet
whenever the user clicks on a cell in column A. The listbox comes up fine with the correct list. My question is - when the user clicks on the listbox, how do I capture their selection? When a listbox is on a userform, I know I can use "listbox1.value". I haven't been able to figure out how to do this when the listbox is not on a form but is "shape" on the worksheet. Private Sub Worksheet_SelectionChange(ByVal Target As Range) If ActiveCell.Column = 1 Then Worksheets(1).Shapes.AddFormControl(xlListBox, 100, ActiveCell.Top, 100, 150) _ .ControlFormat.ListFillRange = "Sheet2!a1:a18" End If End Sub Thanks!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Problem with listboxes | Excel Programming | |||
Listboxes 2 | Excel Programming | |||
listboxes | Excel Programming | |||
Listboxes | Excel Programming | |||
Linked ListBoxes | Excel Programming |