+ Reply to Thread
Results 1 to 2 of 2

Change commandbutton text from userform

  1. #1
    Forum Contributor
    Join Date
    12-16-2005
    Posts
    161

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

  2. #2
    john
    Guest

    Re: 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"
    <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1