Salamander
Board Regular
- Joined
- Jul 30, 2009
- Messages
- 64
Hi all,
I have a small userform which currently programatically adds a multipage page for each open workbook. Onto this new page it adds a new listbox control and populates it with appropriate items.
This is all simple enough and works no problem, however:
Is it possible to then create a listbox_DblClick event to this new listbox?
Any suggestions greatly appreciated!
Cheers,
S.
I have a small userform which currently programatically adds a multipage page for each open workbook. Onto this new page it adds a new listbox control and populates it with appropriate items.
Code:
With Me.MultiPage1
.Pages.Add
.Pages(i - 2).Caption = Application.Workbooks(i).Name
Set lb = Me.MultiPage1.Pages(i - 2).Controls.Add("Forms.Listbox.1")
For Each ws In Application.Workbooks(i).Worksheets
lb.AddItem ws.Name
Next ws
End With
This is all simple enough and works no problem, however:
Is it possible to then create a listbox_DblClick event to this new listbox?
Any suggestions greatly appreciated!
Cheers,
S.