Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Listbox to bottom

Status
Not open for further replies.

dhboston

Technical User
Oct 23, 2001
10
US
I have a listbox containing several columns of data. The default is to have the listbox set to the top and use the scroll bar to get the bottom of the data. Is there a way to set the default to be at the bottom of the list and use the scroll bar to scroll to the top?
Thanks
dhboston
 
Try this code:
Me.lstMyListBox = Me.lstMyListBox.ItemData(Me.lstMyListBox.ListCount - 1)

Change the lstMyListBox to the name of your listbox
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top