View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Select an item in a listbox using code


Sheet1.Listbox1.Listindex = 3

--
Regards,
Tom Ogilvy


"Fred Jacobowitz" wrote in message
...
Is it possible to select an item in a listbox using vba. I would like to
simulate the user clicking a row in a listbox? The listbox is not on a
'form' but rather on the spreadsheet. Does it matter?

Thank you,
Fred Jacobowitz