Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select an item in a listbox using code
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Select an item in a listbox using code
Tom,
Works like a charm - thanks a lot! "Tom Ogilvy" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Last Item of Listbox not getting displayed | Excel Discussion (Misc queries) | |||
Adding item in listbox | Excel Worksheet Functions | |||
Adding item in listbox | Excel Worksheet Functions | |||
Item order in ListBox | Excel Discussion (Misc queries) | |||
The value of a ListBox Item | Excel Programming |