Consulting

Results 1 to 6 of 6

Thread: Proper case question

  1. #1

    Proper case question

    When I use the Proper function in excel,
    the text after (') becomes upper case..
    e.g I don'T Know

    How can I write a macro so that it can become ... " I don't know " ?

    Thanks in Advance.

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Do you just want to capitalize the first letter in the cell?

    =UPPER(LEFT(A1,1)) & RIGHT(A1,LEN(A1)-1)

  3. #3
    Moderator VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Quote Originally Posted by DRJ
    Do you just want to capitalize the first letter in the cell?

    =UPPER(LEFT(A1,1)) & RIGHT(A1,LEN(A1)-1)
    Hi DRJ, and Dreamer,

    DRJ, I think Dreamer is saying that he wants to make the character after ' is lower case.

    =PROPER("i don't know")

    will output

    I Don'T Know. (But Dreamer needs "I Don't Know")

    HTH

  4. #4
    Moderator VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location

    Thumbs up Some Solution

    It seems that =PROPER(some string) cannot work to produce what Dreamer needs.

    Later I found out this macro which might be helpful.

    StrConv("i don't know", vbProperCase)
    It can output -> I Don't Know.

    HTH

  5. #5
    THANKS!

  6. #6
    Moderator VBAX Mentor sheeeng's Avatar
    Joined
    May 2005
    Location
    Kuala Lumpur
    Posts
    392
    Location
    Quote Originally Posted by Dreamer
    THANKS!
    Welcome to VBAX.

    You're welcome.

    Hope that this forum can help u.

Posting Permissions

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