I'm trying to create a control dynamically, and while i've tried several things, nothing works...any ideas...here's what i've tried, and here are the errors i've received:
Set lblVar2 = Controls.Add("VB.Label", "lblVar2", True)
Error: Invalid Class String
Set lblVar2 = CreateObject("userForm.Label1")
Error: ActiveX component can't create object
any help would be most appreciated. thanks
Set lblVar2 = Controls.Add("VB.Label", "lblVar2", True)
Error: Invalid Class String
Set lblVar2 = CreateObject("userForm.Label1")
Error: ActiveX component can't create object
any help would be most appreciated. thanks