ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Scrolling a lstBox automatically (https://www.excelbanter.com/excel-programming/285812-scrolling-lstbox-automatically.html)

Nichevo

Scrolling a lstBox automatically
 
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

Nichevo

Scrolling a lstBox automatically
 
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

Stephen Bullen

Scrolling a lstBox automatically
 
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




All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com