Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change CommandButton Picture TheVisionThing Excel Programming 0 December 14th 05 05:24 PM
Hiding A TextBox On A UserForm Under A CommandButton Minitman[_4_] Excel Programming 5 August 26th 05 09:56 PM
CommandButton - Userform Marcia3641 Excel Discussion (Misc queries) 2 July 21st 05 06:39 PM
Combobox with Commandbutton in Userform! Stift[_16_] Excel Programming 7 May 28th 04 08:50 AM
Commandbutton in UserForm to run Macro salihyil[_4_] Excel Programming 2 February 16th 04 05:36 PM


All times are GMT +1. The time now is 11:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"