+ Reply to Thread
Results 1 to 7 of 7

Changing first letter to caps, letters after "-" and "/", and rest to small letter.

  1. #1
    Registered User
    Join Date
    03-12-2008
    Posts
    4

    Changing first letter to caps, letters after "-" and "/", and rest to small letter.

    Hi all,

    I'm currently working for a company as a data entry admin. I'm asked to copy and paste some details from websites provided by the company and some websites have the addresses of the company in all caps.

    My boss has asked me to change all these caps such that the first letter is caps, letters after "/" and "-" to caps, and the rest to small letters. He said that it would be very troublesome for him to do it himself 1 by 1, retyping them.

    Obviously he don't know much about Excel. I did some research online and found this code.

    Please Login or Register  to view this content.
    This code successfully changes the first letter of each word to caps and the remaining letters to small letters, but I'm suffering from one problem.

    Take for example I have an address that is

    108-A SERANGOON ROAD.

    This code changes it to

    108-a Serangoon Road

    My boss know nuts about excel, and I know nuts about these codes as I specialise in Java programming, so I'd like to seek your professional help in coding this code such that it will change letters that appear after "-" and "/" to caps as well.

    I hope that's not too much to ask.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Try to use this code:
    Please Login or Register  to view this content.

    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    03-12-2008
    Posts
    4
    Awesome. thanks for your reply. I've give the code a try very soon.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525
    try
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-12-2008
    Posts
    4

    changes only a certain number of fuse then error

    hi antoka05,

    ur code only changes a certain number of fuse then there is error
    is there anyway to allow more fuse to be changed at a time ?

    Regards

  6. #6
    Registered User
    Join Date
    03-12-2008
    Posts
    4

    to jindo

    hi jindo,

    what happens if within one fuse there is both - and / , cuz it only changes the one that appears after the first sign

    Regards

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525
    Add one line
    Please Login or Register  to view this content.

+ 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