access containedcontrols in a control
I need top be able to access the controls that are present in an ActiveX ctrl....
I've tried
for Each CTRL in usercontrol.containedcontrols
if CTRL.name = "LB1" then CTRL.Caption = "Name"
next
...does'nt work
I've tried
X = instr(1,"LB",usercontrol.containedcontrols.item(i)
if X <> 0 then CTRL.Caption = "Name"
...does not work ....
Basically I need to refresh the controls with new data; BTW.. the controls have been dynamically created in the resize event of the Control, and on each button click that causes a movenext, they have to be refreshed with the new values....
Please Help
Michael
|