Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Access control on a worksheet - help!
Hi,
can anybody help me? I am trying to access a listbox control on a worksheet and populate it with an array. For example: Sub MySub() Dim mySheet As Worksheet Dim tempArray As Variant ' populate the tempArray ........ Set mySheet = Sheets("Test sheet") mySheet.ListBox1.List() = tempArray 'A variant array End Sub The error message is: Compile error, method or data member not found However this works just fine: Sheets("Test sheet").ListBox1.List() = tempArray I would like to use the variable mySheet instead (better programming practice I assume!) Any ideas? Thanks in advance to all :-) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Control Access | Excel Discussion (Misc queries) | |||
Configuring Excel 2003 to control access to Trusted Publishers | Excel Discussion (Misc queries) | |||
In EXCEL,How do you control the access to SHEET2, based on a value | Excel Worksheet Functions | |||
Excel VBA To Control Access | Excel Programming | |||
Accessing ActiveX Controls using VBA - can't use Control.Name to access. | Excel Programming |