listbox on userform
Posted by xye on February 11, 2002 10:24 AM
hi
i was trying to do something like that 9excel 2000)
userform module
i putted listbox on form
and then added code like this :
dim lb as Object
...
...
set lb = ListBox1
then i was trying to make procedure
sub test( lbox as Object)
lbox.SetFocus
end Sub
when i was trying to call that function by typing
test(lb)
i get object required error
what am i doing wrong ?
please help
TIA
regards