+ Reply to Thread
Results 1 to 3 of 3

Upper case in textbox

  1. #1
    Greg
    Guest

    Upper case in textbox

    Hi all,

    How do I set up a userform when i exit textbox1 it automatically changes the
    text in the box to uppercase.

    Thanks in advance

    Greg



  2. #2
    Norman Jones
    Guest

    Re: Upper case in textbox

    Hi Greg,

    Try:

    '=============>>
    Private Sub TextBox1_Exit(ByVal Cancel _
    As MSForms.ReturnBoolean)
    With Me.TextBox1
    .Text = UCase(.Text)
    End With
    End Sub
    '<<=============


    ---
    Regards,
    Norman


    "Greg" <[email protected]> wrote in message
    news:[email protected]...
    > Hi all,
    >
    > How do I set up a userform when i exit textbox1 it automatically changes
    > the text in the box to uppercase.
    >
    > Thanks in advance
    >
    > Greg
    >




  3. #3
    Greg
    Guest

    Re: Upper case in textbox

    Thanks Norman

    "Norman Jones" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Greg,
    >
    > Try:
    >
    > '=============>>
    > Private Sub TextBox1_Exit(ByVal Cancel _
    > As MSForms.ReturnBoolean)
    > With Me.TextBox1
    > .Text = UCase(.Text)
    > End With
    > End Sub
    > '<<=============
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    > "Greg" <[email protected]> wrote in message
    > news:[email protected]...
    >> Hi all,
    >>
    >> How do I set up a userform when i exit textbox1 it automatically changes
    >> the text in the box to uppercase.
    >>
    >> Thanks in advance
    >>
    >> Greg
    >>

    >
    >




+ 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