M
Michael Singmin
Hello group,
I want to insert a Controls listbox onto a sheet (VBA).
I switched on macro record and this is what came out.
"ActiveSheet.OLEObjects.Add(ClassType:="Forms.ListBox.1", Link:=False,
DisplayAsIcon:=False, Left:=285, Top:=141, Width:=77.25,
Height:=118.5).Select"
This seems to be a strange construct.
If I try an step through with F8, I get this error message
"Can't enter breakmode at this time"
with 3 buttons "Continue","End","Help"
If I run it normally with F5 then it creates the listbox.
How do I find the name of the listbox just created?
It could be listbox1,listbox2.listbox3 etc
Thanks,
Michael Singmin
I want to insert a Controls listbox onto a sheet (VBA).
I switched on macro record and this is what came out.
"ActiveSheet.OLEObjects.Add(ClassType:="Forms.ListBox.1", Link:=False,
DisplayAsIcon:=False, Left:=285, Top:=141, Width:=77.25,
Height:=118.5).Select"
This seems to be a strange construct.
If I try an step through with F8, I get this error message
"Can't enter breakmode at this time"
with 3 buttons "Continue","End","Help"
If I run it normally with F5 then it creates the listbox.
How do I find the name of the listbox just created?
It could be listbox1,listbox2.listbox3 etc
Thanks,
Michael Singmin