Joe Was
MrExcel MVP
- Joined
- Feb 19, 2002
- Messages
- 7,539
I would like to have the currently selected item in a ListBox move to the top of the list box. The source is a sorted column of a table.
The ListBox is both a selection tool and is updated when the forms CurrentRecord changes.
Does anyone know how to control the visible position of row items in a ListBox?
Or, make the current selection the top visible row in a listbox?
Private Sub Form_Current()
Dim myWord As Variant
'Select found record in ListBox after "Find."
If upDateList = "T" Then
Me.Word.SetFocus
myWord = Me![Word].Text
Me.ListBox_Lookup.Value = myWord
End If
upDateList = "F"
End Sub
The ListBox is both a selection tool and is updated when the forms CurrentRecord changes.
Does anyone know how to control the visible position of row items in a ListBox?
Or, make the current selection the top visible row in a listbox?
Private Sub Form_Current()
Dim myWord As Variant
'Select found record in ListBox after "Find."
If upDateList = "T" Then
Me.Word.SetFocus
myWord = Me![Word].Text
Me.ListBox_Lookup.Value = myWord
End If
upDateList = "F"
End Sub