Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Listview Question
Hi I was wondering is there is a way to move a selected record/Row to the top
of the listview control just the like TopIndex in the normal list control?. TIA Charles |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Listview Question
Hello Charles you may try Dim i As Integer For i = 1 To ListView1.ListItems.Count ListView1.ListItems(i).EnsureVisible '8 is the Item to place at TopIndex If 8 = ListView1.GetFirstVisible.Index Then Exit For Next i Regards miche -- michelxl ----------------------------------------------------------------------- michelxld's Profile: http://www.excelforum.com/member.php...fo&userid=1736 View this thread: http://www.excelforum.com/showthread.php?threadid=49823 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Listview Question
Re and for the Selected item... Dim i As Integer For i = 1 To ListView1.ListItems.Count ListView1.ListItems(i).EnsureVisible If ListView1.SelectedItem.Index = ListView1.GetFirstVisible.Index The Exit For Next i Regards miche -- michelxl ----------------------------------------------------------------------- michelxld's Profile: http://www.excelforum.com/member.php...fo&userid=1736 View this thread: http://www.excelforum.com/showthread.php?threadid=49823 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
ListView Question | Excel Programming | |||
bug listview? | Excel Programming | |||
How to use Listview control | Excel Programming | |||
Listview in Excel 97 vba. | Excel Programming | |||
Get items in ListView in columns | Excel Programming |