MPW
Well-known Member
- Joined
- Oct 7, 2009
- Messages
- 571
- Office Version
- 365
- Platform
- Windows
I am using the age old loop through the controls ie.
My question is "How do I identify the frame that the control resides in?" I have 10 frames in frame2 and they all have identical parameters. Ultimately what I am attempting to do is to loop through each of the 10 frames to populate labels based on the textboxes in those same frames.
I know how to do it with folders and sub folders, but I am not sure how to do it with objects in a userform.
Any help is greatly appreciated.
Code:
For Each cCont1 In Workshop.Frame2.Controls
If TypeName(cCont1) = "TextBox" Then
etc., etc.
My question is "How do I identify the frame that the control resides in?" I have 10 frames in frame2 and they all have identical parameters. Ultimately what I am attempting to do is to loop through each of the 10 frames to populate labels based on the textboxes in those same frames.
I know how to do it with folders and sub folders, but I am not sure how to do it with objects in a userform.
Any help is greatly appreciated.