+ Reply to Thread
Results 1 to 4 of 4

Highlight all Text in a Textbox when the textbox is selected

  1. #1
    Registered User
    Join Date
    05-09-2004
    Posts
    21

    Highlight all Text in a Textbox when the textbox is selected

    I must be missing something, but when I select the text box I want all of the information in the text box selected automatically so that I can just start entering information and the original text is deleted. Please help.

  2. #2
    Tom Ogilvy
    Guest

    Re: Highlight all Text in a Textbox when the textbox is selected

    What kind of text box. Where is it located? Are you asking how to program
    something or just wishing?

    --
    Regards,
    Tom Ogilvy



    "RPIJG" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I must be missing something, but when I select the text box I want all
    > of the information in the text box selected automatically so that I can
    > just start entering information and the original text is deleted.
    > Please help.
    >
    >
    > --
    > RPIJG
    > ------------------------------------------------------------------------
    > RPIJG's Profile:

    http://www.excelforum.com/member.php...fo&userid=9285
    > View this thread: http://www.excelforum.com/showthread...hreadid=480188
    >




  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello RPIJG,

    If you want to highlight the text inside a TextBox on a user form when the user clicks the TextBox, this code will do that.

    Inset this code into the Mouse_Up Event for the TextBox. Change TextBox1 in the Example to match the name of your TextBox.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  4. #4
    Registered User
    Join Date
    05-09-2004
    Posts
    21
    Sorry Tom I guess it was a bit of both, a wish and a need to program, Leith that works great thanks.

+ 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