+ Reply to Thread
Results 1 to 5 of 5

Upper-case for the Second Character

  1. #1
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Upper-case for the Second Character

    Hello, could some one please help with the following:

    In column J of my Excel 2003 worksheet named: Sheet1, is a list of mailing addresses.

    A copy of the spreadsheet is attached.

    I need a macro to please capitalise (Upper-case) the second character only of all the Post Office addresses.

    Example:

    Po Box 65, ORLANDO, NSW 2697

    All of my Post Office addresses are prefixed: Po

    I need the Post Office addresses to be prefixed: PO

    So, the above mentioned example should look like this: PO Box 65, ORLANDO, NSW 2697

    If any one could please help - that would be much appreciated.

    Kind regards,

    Chris
    Attached Files Attached Files
    Last edited by longbow007; 09-21-2009 at 12:52 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Upper-case for the Second Character

    Why not just find and replace "Po " with "PO "?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Upper-case for the Second Character

    Hi shg, thanks for your enquiry. My list of addresses is usually 10,000 or more rows. The user of the spreadsheet has absolutely no computer skills what so ever. To make life easier, I am trying to automate this process.

    Kind regards,

    Chris

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Upper-case for the Second Character

    Hello Chris,

    This macro will correct the "PO" portion of the address. It has been added to the attached workbook.
    Please Login or Register  to view this content.
    To Run the Macro...
    To run the macro from Excel, open the workbook, and press ALT+F8 to display the Run Macro Dialog. Double Click the macro's name to Run it.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Upper-case for the Second Character

    Thanks Leith Ross for your help - your code works well and is greatly appreciated.

    Kind regards,

    Chris.

+ 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