Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Caps in text boxes

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Is there a way to make all entries in a text box be capitalized? For ex. if a person typed "ea7747" it would show up as "EA7747" without the user have to type in the ea in caps.

    Thanks,
    DaK

  2. #2
    MrExcel MVP Mark O'Brien's Avatar
    Join Date
    Feb 2002
    Location
    Columbus, OH, USA
    Posts
    3,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Textbox in a Userform?

    Sure is mate. My textbox is called "Textbox2", in my opinion it's the best Textbox that we've got between Testbox1 and Textbox3.

    Put this code in the Textbox change event, changing all of the names to the name of your textbox, (not 'alf):


    Private Sub TextBox2_Change()
    TextBox2.Text = UCase(TextBox2.Text)
    End Sub


    Hope this helps, mate.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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