Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've inserted a listbox called 'listcategory' directly onto a worksheet
called 'test'. I'm trying to programmatically add items to this listbox using the following code but I get an 'Object Required' error message: With Worksheets("test") ListCategory.Clear ListCategory.additem("wayne") End With How do I reference this listbox in Excel VBA? Thanks, Wayne C. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Wayne,
Is this exactly the code you're using?? If so, you're missing a period before each "ListCategory" reference. Stan Scott New York City "The Vision Thing" wrote in message ... I've inserted a listbox called 'listcategory' directly onto a worksheet called 'test'. I'm trying to programmatically add items to this listbox using the following code but I get an 'Object Required' error message: With Worksheets("test") ListCategory.Clear ListCategory.additem("wayne") End With How do I reference this listbox in Excel VBA? Thanks, Wayne C. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CountIF() in Worksheet B while referencing cells in Worksheet A | Excel Worksheet Functions | |||
CountIF() in Worksheet B while referencing cells in Worksheet A | Excel Worksheet Functions | |||
Help! Activate worksheet from a listbox | Excel Worksheet Functions | |||
How access a listbox on a worksheet | Excel Programming | |||
listbox.value not equal to listbox.list(listbox.listindex,0) | Excel Programming |