anuragsapanbharat
New Member
- Joined
- Mar 9, 2010
- Messages
- 2
Hi,
I have been trying to create a runtime frame control, which I am having issue to create within another existing frame.
When I am adding a frame to the Userform Set cCont = Me.Controls.Add("Forms.frame.1", "NewFrame") its working fine. But the same is not working for the below code Set cCont = Frame1.Controls.Add("Forms.frame.1", "NewFrame"), where Frame1 is already there on the form. I am getting Automation error. the object invoked disconnected from its clients.
I searched google but there is no solution for the same. Please help.
I have been trying to create a runtime frame control, which I am having issue to create within another existing frame.
When I am adding a frame to the Userform Set cCont = Me.Controls.Add("Forms.frame.1", "NewFrame") its working fine. But the same is not working for the below code Set cCont = Frame1.Controls.Add("Forms.frame.1", "NewFrame"), where Frame1 is already there on the form. I am getting Automation error. the object invoked disconnected from its clients.
I searched google but there is no solution for the same. Please help.