+ Reply to Thread
Results 1 to 3 of 3

Textbox issue

Hybrid View

john55 Textbox issue 03-10-2012, 01:18 PM
DGagnon Re: Textbox issue 03-10-2012, 01:45 PM
john55 Re: Textbox issue 03-10-2012, 02:25 PM
  1. #1
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,068

    Textbox issue

    Hi guys,

    I've tried to solve a problem with my TextBox but without success.
    for example, I want to change this text "RRR-YYY-PPP" with this one
    "RRR-KKK-PPP", when I start to type after the first letter "K" the cursor jumps at the end of text. I come back and I type the second letter...and then it jumps again.
    I just want to type the whole word, i.e "KKK"
    the reason is this, if I remove UCase is ok, but I want to have Ucase!
    Private Sub TextBox1_Change()
    TextBox1.Text = UCase(TextBox1.Text) 'route
    Me.Label29 = TextBox1.Value
    End Sub
    How can I avoid this?!

    Thank you!
    Last edited by john55; 03-10-2012 at 02:25 PM.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Textbox issue

    Give this a shot:

    Private Sub TextBox1_AfterUpdate()
    TextBox1.Text = UCase(TextBox1.Text) 'route
    Me.Label29 = TextBox1.Value
    End Sub
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,068

    Re: Textbox issue

    hi DGagnon,
    Thank you very much for your help!

+ 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