Andrew_Fryer
May 3rd, 2001, 02:50 AM
In VBA, when an item in a list box is selected by code instead of the user is there a way to scroll down the list box and display the item selected?
Thanks
Andrew
Thanks
Andrew
|
Click to See Complete Forum and Search --> : List Boxes Andrew_Fryer May 3rd, 2001, 02:50 AM In VBA, when an item in a list box is selected by code instead of the user is there a way to scroll down the list box and display the item selected? Thanks Andrew OrenKul May 3rd, 2001, 05:50 AM Hi, If its the same as VB then: List1.Selected(desiredItemNum) = true List1.TopIndex = desiredItemNum ~&-) Andrew_Fryer May 3rd, 2001, 07:10 AM No, that doesn't seem to work.... OrenKul May 3rd, 2001, 07:42 AM I suppose you got the idea that 'desiredItemNum' is a number you enter ?! It works fine for VB. Oren. ~&-) codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |