Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't know if it's possible, but why not just have multiple columns in one
listbox and make the listbox wide enough to show both. It seems like a much easier solution. But you could sync the listboxes after you leave one of them: Option Explicit Private Sub ListBox2_Exit(ByVal Cancel As MSForms.ReturnBoolean) Me.ListBox1.TopIndex = Me.ListBox2.TopIndex End Sub Private Sub ListBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean) Me.ListBox2.TopIndex = Me.ListBox1.TopIndex End Sub Private Sub UserForm_Initialize() Dim iCtr As Long With Me.ListBox1 .IntegralHeight = True For iCtr = 1 To 20 .AddItem "asdf" & iCtr Next iCtr End With With Me.ListBox2 .IntegralHeight = True .Top = Me.ListBox1.Top .Height = Me.ListBox1.Height For iCtr = 1 To 20 .AddItem "qwer" & iCtr Next iCtr End With End Sub greenfalcon wrote: i wonder if this is even possible -- greenfalcon ------------------------------------------------------------------------ greenfalcon's Profile: http://www.excelforum.com/member.php...o&userid=13622 View this thread: http://www.excelforum.com/showthread...hreadid=490823 -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
listboxes | Excel Programming | |||
listboxes | Excel Programming | |||
listboxes | Excel Programming | |||
Userform w/ Multiple listboxes that link | Excel Programming | |||
Userform w/ Multiple listboxes that link | Excel Programming |