Scrolling a lstBox automatically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
was wondering if someone had an idea how to get past thi

I've got a lstbox on a form that I continually write to - as in a progress indicator - but when I write to the 7th entry I run out of screen space and a scroll bar turns up and the new txt can no longer be seen. Is there anyway to have the lstbox automatically scroll so the last entry is alway shown

than
Nichevo
 
Don't worry found a solution

ProgBar2.lstMsgWin.AddItem tx
If ProgBar2.lstMsgWin.ListCount >= 8 The
ProgBar2.lstMsgWin.RemoveItem
End I

Through if anyone knows a easy way to scroll the lstbox instead of removing the first item each time I wouldn't mind knowing
 
Hi Nichevo,
Through if anyone knows a easy way to scroll the lstbox instead of removing the first item each time I wouldn't mind knowing

If this is a list box on a userform, take a look at the TopIndex property.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top