MrRajKumar
Active Member
- Joined
- Jan 29, 2008
- Messages
- 291
- Office Version
- 365
- Platform
- Windows
Hi,
I am designing an userform. So basically i would like to get the following.
Design:
A simple form to data entry. I added a label on underneath of each control. If there is any error its caption shows errors in red color, so they can fix it.
So when the form initialize, I used a code to replace caption of every labels (error lablels) to a 'space'.
Question:
Looking for a function to check all labels 'tag' property. if the tag value is 'error' then change their caption to 'specific' value.
Eg:
ChangeLabelCaption(TagValue,NewCaption)
ChangeLableCapton("error"," ")
So I can call this function, rather to add a code for each label in the userform.
I hope my question is clear. If not, sorry, please feel free to ask.
I am designing an userform. So basically i would like to get the following.
Design:
A simple form to data entry. I added a label on underneath of each control. If there is any error its caption shows errors in red color, so they can fix it.
So when the form initialize, I used a code to replace caption of every labels (error lablels) to a 'space'.
Question:
Looking for a function to check all labels 'tag' property. if the tag value is 'error' then change their caption to 'specific' value.
Eg:
ChangeLabelCaption(TagValue,NewCaption)
ChangeLableCapton("error"," ")
So I can call this function, rather to add a code for each label in the userform.
I hope my question is clear. If not, sorry, please feel free to ask.