Hi
I have set up 20+ user forms with approximately 50 controls in each one. When designing the forms, it seemed inefficient to give a unique meaningful name to each and every control, so they are currently named randomnly, i.e CheckBox1 could be beside CheckBox101 but still related to the same topic.
What makes each control meaningful is a separate label control beside it. I'm looking for the best way to capture the label control text, which is never further than 10 points to the right and 3 points up or down from the control, and paste it as the control's name, tag or caption property.
Note that for checkboxes, I don't use the caption field because the text placement is too restrictive. I prefer to use a separate label control and not show the checkbox's caption.
From there, I can save the result of the user's input next to the new (meaningful) control name on my worksheet as a field identifier. For example, if CheckBox1 has a label with the text "Side 1 good" beside it, I'll save the new control name (ex: Side1good" or the tag or caption property set as "Side 1 good") in column A and the control's value in column B.
When I test to change a control property at design time with code, my procedure never seems to permanently change the targeted property. Debug.print will show me that the property is changed but the Explorer Window does not reflect that. Why? (Please note that it would not be a problem if I were to have only a few controls, however, I have more 1000 of these to integrate in my forms and I need to find a quick and/or efficient way to set it up.)
Thanks in advance for any help you can give me.
I have set up 20+ user forms with approximately 50 controls in each one. When designing the forms, it seemed inefficient to give a unique meaningful name to each and every control, so they are currently named randomnly, i.e CheckBox1 could be beside CheckBox101 but still related to the same topic.
What makes each control meaningful is a separate label control beside it. I'm looking for the best way to capture the label control text, which is never further than 10 points to the right and 3 points up or down from the control, and paste it as the control's name, tag or caption property.
Note that for checkboxes, I don't use the caption field because the text placement is too restrictive. I prefer to use a separate label control and not show the checkbox's caption.
From there, I can save the result of the user's input next to the new (meaningful) control name on my worksheet as a field identifier. For example, if CheckBox1 has a label with the text "Side 1 good" beside it, I'll save the new control name (ex: Side1good" or the tag or caption property set as "Side 1 good") in column A and the control's value in column B.
When I test to change a control property at design time with code, my procedure never seems to permanently change the targeted property. Debug.print will show me that the property is changed but the Explorer Window does not reflect that. Why? (Please note that it would not be a problem if I were to have only a few controls, however, I have more 1000 of these to integrate in my forms and I need to find a quick and/or efficient way to set it up.)
Thanks in advance for any help you can give me.