BrianExcel
Well-known Member
- Joined
- Apr 21, 2010
- Messages
- 975
I have a group of text boxes inside a frame. What I want to do is write a rule that says "If the value of any textboxes within this frame = MISC" then do code.
So far I have gotten as far as defining the txtbox as a control and trying to reference it, but it doesn't give me the value property as an option.
This is the code I would like to try and use if possible, but I need to consider the value (or text) property of the textbox.
Any thoughts?
So far I have gotten as far as defining the txtbox as a control and trying to reference it, but it doesn't give me the value property as an option.
This is the code I would like to try and use if possible, but I need to consider the value (or text) property of the textbox.
Code:
dim cntl as control
for each cntl in userform1.frame3.controls
if cntl.value [COLOR="Red"]<-- this where I need to reference value[/COLOR]
= "Misc" then
DO CODE.
Any thoughts?