+ Reply to Thread
Results 1 to 2 of 2

highlighting part of string?

  1. #1
    Forum Contributor
    Join Date
    06-02-2005
    Posts
    100

    highlighting part of string?

    Hi all,

    I have a comma deliniated textbox value error checker

    i.e. my procedure checks that all comma delinated values in a userform textbox control are valid. If not, a message box comes up informing the user of the invalid entry and the procedure is exited.

    I would like to have only the invalid text within the textbox highlighted. Is this possible? If so, how would it be done?

    Code in different thread here:

    http://www.excelforum.com/showthread.php?t=501926
    Last edited by Ouka; 01-17-2006 at 02:00 AM.

  2. #2
    Bob Phillips
    Guest

    Re: highlighting part of string?

    With TextBox1
    .SelStart = 5
    .SelLength = 3
    .SetFocus
    End With

    --
    HTH

    RP
    "Ouka" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Hi all,
    >
    > I have a comma deliniated textbox value error checker
    >
    > i.e. my procedure checks that all comma delinated values in a userform
    > textbox control are valid. If not, a message box comes up informing
    > the user of the invalid entry and the procedure is exited.
    >
    > I would like to have the invalid text within the textbox highlighted.
    > Is this possible? If so, how would it be done?
    >
    >
    > --
    > Ouka
    > ------------------------------------------------------------------------
    > Ouka's Profile:

    http://www.excelforum.com/member.php...o&userid=23988
    > View this thread: http://www.excelforum.com/showthread...hreadid=501924
    >




+ 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