+ Reply to Thread
Results 1 to 9 of 9

3 letter capitalisation

Hybrid View

  1. #1
    Registered User
    Join Date
    09-10-2003
    Location
    London, UK
    Posts
    38
    The data being entered is specialised, so there'll be no need to type in any general, everyday names, as such.

    I've actually modified it a little now to capitalise all letters within 2-5 letters. This is because when people enter these words they will be acronyms of a certain team/unit. However, anything over 5 letters will likely be a team/unit's name in full, so it just needs the first letter to be capitalised.

    My example in the first post may have confused the issue when I used my own name! That isn't typical of the data being entered, sorry!

    All the best,
    Dan.
    Last edited by Voodoodan; 01-27-2006 at 06:45 AM.

  2. #2
    Dave Peterson
    Guest

    Re: 3 letter capitalisation

    Just curious, did you change the code so it looked like:

    Select Case Len(Target.Value)
    Case 2 To 5: myConversion = vbUpperCase
    Case Else: myConversion = vbProperCase
    End Select

    (just checking on you <bg>)

    Voodoodan wrote:
    >
    > The data being entered is specialised, so there'll be no need to type in
    > any general, everyday names, as such.
    >
    > I've actually modified it a little now to capitalise all letters within
    > 2-5 letters. This is because when people enter these words they will be
    > acronyms of a certain team/unit. However, anything over 5 letters will
    > likely be a team/unit's name in full, so it just needs the first letter
    > to be capitalised.
    >
    > Dan.
    >
    > --
    > Voodoodan
    > ------------------------------------------------------------------------
    > Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597
    > View this thread: http://www.excelforum.com/showthread...hreadid=505301


    --

    Dave Peterson

  3. #3
    Registered User
    Join Date
    09-10-2003
    Location
    London, UK
    Posts
    38
    Close, I did it this way, however I prefer the neatness of your line!

    Select Case Len(Target.Value)
    Case Is = 2, 3, 4, 5: myConversion = vbUpperCase
    Case Else: myConversion = vbProperCase
    End Select

    Dan.




    Quote Originally Posted by Dave Peterson
    Just curious, did you change the code so it looked like:

    Select Case Len(Target.Value)
    Case 2 To 5: myConversion = vbUpperCase
    Case Else: myConversion = vbProperCase
    End Select

    (just checking on you <bg>)

    Voodoodan wrote:
    >
    > The data being entered is specialised, so there'll be no need to type in
    > any general, everyday names, as such.
    >
    > I've actually modified it a little now to capitalise all letters within
    > 2-5 letters. This is because when people enter these words they will be
    > acronyms of a certain team/unit. However, anything over 5 letters will
    > likely be a team/unit's name in full, so it just needs the first letter
    > to be capitalised.
    >
    > Dan.
    >
    > --
    > Voodoodan
    > ------------------------------------------------------------------------
    > Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597
    > View this thread: http://www.excelforum.com/showthread...hreadid=505301


    --

    Dave Peterson

  4. #4
    Dave Peterson
    Guest

    Re: 3 letter capitalisation

    Putting all the numbers is a nice way if you wanted to skip one of them. But
    way too much work if you were checking up to (say) 32000 characters <vvbg>.



    Voodoodan wrote:
    >
    > Close, I did it this way, however I prefer the neatness of your line!
    >
    > Select Case Len(Target.Value)
    > Case Is = 2, 3, 4, 5: myConversion = vbUpperCase
    > Case Else: myConversion = vbProperCase
    > End Select
    >
    > Dan.
    >
    > Dave Peterson Wrote:
    > > Just curious, did you change the code so it looked like:
    > >
    > > Select Case Len(Target.Value)
    > > Case 2 To 5: myConversion = vbUpperCase
    > > Case Else: myConversion = vbProperCase
    > > End Select
    > >
    > > (just checking on you <bg>)
    > >
    > > Voodoodan wrote:
    > > >
    > > > The data being entered is specialised, so there'll be no need to type

    > > in
    > > > any general, everyday names, as such.
    > > >
    > > > I've actually modified it a little now to capitalise all letters

    > > within
    > > > 2-5 letters. This is because when people enter these words they will

    > > be
    > > > acronyms of a certain team/unit. However, anything over 5 letters

    > > will
    > > > likely be a team/unit's name in full, so it just needs the first

    > > letter
    > > > to be capitalised.
    > > >
    > > > Dan.
    > > >
    > > > --
    > > > Voodoodan
    > > >

    > > ------------------------------------------------------------------------
    > > > Voodoodan's Profile:

    > > http://www.excelforum.com/member.php...nfo&userid=597
    > > > View this thread:

    > > http://www.excelforum.com/showthread...hreadid=505301
    > >
    > > --
    > >
    > > Dave Peterson

    >
    > --
    > Voodoodan
    > ------------------------------------------------------------------------
    > Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597
    > View this thread: http://www.excelforum.com/showthread...hreadid=505301


    --

    Dave Peterson

+ 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