MrExcel Publishing
Your One Stop for Excel Tips & Solutions

ListBox SetFocus

Posted by Stan on November 20, 2001 12:27 PM

when a Useform opens I want to set the focus on the first row of a ListBox. I tried using ListBox.SetFocus(0) = True but it returns an error. What am I doing wrong?

Posted by Russell Hauf on November 20, 2001 2:00 PM

Try this:

ListBox.Selected(0) = True

Hope this helps,