ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Change commandbutton text from userform (https://www.excelbanter.com/excel-programming/348357-change-commandbutton-text-userform.html)

peter.thompson[_4_]

Change commandbutton text from userform
 

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!)


--
peter.thompson
------------------------------------------------------------------------
peter.thompson's Profile: http://www.excelforum.com/member.php...o&userid=29686
View this thread: http://www.excelforum.com/showthread...hreadid=494305


john

Change commandbutton text from userform
 
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"
wrote in
message news:peter.thompson.205xsn_1134787201.826@excelfor um-nospam.com...

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!)


--
peter.thompson
------------------------------------------------------------------------
peter.thompson's Profile:

http://www.excelforum.com/member.php...o&userid=29686
View this thread: http://www.excelforum.com/showthread...hreadid=494305





All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com