+ Reply to Thread
Results 1 to 4 of 4

Macro for USA address?

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Macro for USA address?

    Hi,

    I have a file with a long listing of addressses, but I need to split the address to column A as STATE ZIP COUNTRY, and column B to City.
    Is there a way to run a macro to split the first character until space to the next column? Or to go back from USA ZIP then STATE as 12 character the split?

    Here is the sample file..

    City.xlsx

    Please help..

    Thanks.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro for USA address?

    This may help some:

    Please Login or Register  to view this content.
    Only handles USA though.

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    440

    Re: Macro for USA address?

    Thank you very much. It appears a little errors on addresses that are not conform to this macro, but i fix it fine.
    Thanks.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro for USA address?

    You're welcome. Glad to help out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using To, CC and another CC email address in Macro
    By mcanant in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2013, 12:54 PM
  2. address function into macro
    By Hakktu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2013, 05:58 AM
  3. Run Macro on Enter Key if Address = A1
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-10-2011, 05:45 PM
  4. Address to run macro on several PC's
    By y_not in forum Excel General
    Replies: 1
    Last Post: 07-09-2007, 09:49 PM
  5. [SOLVED] Change IP address with macro
    By broogle in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-07-2005, 09:05 PM

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