Change commandbutton text from userform

  • Thread starter Thread starter peter.thompson
  • Start date Start date
P

peter.thompson

I want to automatically change commandbutton text when a user types the
text into a userform - Can this be done? Any Ideas?

Cheers

Peter (New to VBA!)
 
You can double-click on the text. Then you can use the following code in you
textbox_change event:

Private Sub TextBox1_Change()
CommandButton1.Caption = "hhhh" 'Add this line to your
textbox_change sub
End Sub

The commandbotton's text will be change to "hhhh".

Best Regards
John Black

"peter.thompson"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top