Are those controls on a UserForm?
"text box label" - there is a text box and there is a label.
Text box has Text property, label has a Caption property.
[tt]
txtMyTextBox.Text = "I am a Text Box"
lblMyLabel.Caption = "I am a label"
[/tt]
Have fun.
---- Andy
A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
If the label is attached to the text box then you can also
myTextBox.controls(0).caption = "Some Text"
Not really any easier but sometimes useful in generic code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.