highlight row / spin button

J

JT

is it possible to highlight the first row in each listbox when the form opens
and then move the highlighted row either up or down with the spin button?

Thanks again for all of the help
 
T

Tom Ogilvy

Private Sub Userform1.Initialize()
for each ctrl in me.controls
if typeof ctrl is MSForms.Listbox then
ctrl.ListIndex = 0
end if
Next
End Sub
 

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

Top