+ Reply to Thread
Results 1 to 4 of 4

Proper Case Odditiy

  1. #1

    Proper Case Odditiy

    Excel's Proper() function converts letters following an apostrophy to upper
    case, which is almost never what's wanted. For example "don't" becomes
    "Don'T".

    Is there any excel or VBA function that works "properly", or do I have to
    write my one proper case function?

    Thanks.

  2. #2
    Jim Rech
    Guest

    Re: Proper Case Odditiy

    Try:

    StrConv("don't",vbProperCase)

    in VBA

    --
    Jim Rech
    Excel MVP
    <[email protected]> wrote in message
    news:[email protected]...
    > Excel's Proper() function converts letters following an apostrophy to
    > upper
    > case, which is almost never what's wanted. For example "don't" becomes
    > "Don'T".
    >
    > Is there any excel or VBA function that works "properly", or do I have to
    > write my one proper case function?
    >
    > Thanks.




  3. #3
    Tom Ogilvy
    Guest

    Re: Proper Case Odditiy

    ? strconv("DON'T",vbProperCase)
    Don't
    ? strConv("don't",vbProperCase)
    Don't



    --
    Regards,
    Tom Ogilvy


    <[email protected]> wrote in message
    news:[email protected]...
    > Excel's Proper() function converts letters following an apostrophy to

    upper
    > case, which is almost never what's wanted. For example "don't" becomes
    > "Don'T".
    >
    > Is there any excel or VBA function that works "properly", or do I have to
    > write my one proper case function?
    >
    > Thanks.




  4. #4
    David
    Guest

    Re: Proper Case Odditiy

    Jim Rech wrote

    > Try:
    >
    > StrConv("don't",vbProperCase)
    >
    > in VBA


    Thank you! I was having the same problem converting text from a userform
    using Payee1 = Application.Proper(UserForm1.TextBox1.Text)
    I can now use Payee1 = StrConv(UserForm1.TextBox1.Text, vbProperCase) and
    input like sam's club no longer comes out Sam'S Club.

    --
    David

+ 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