+ Reply to Thread
Results 1 to 5 of 5

Macro to format list (varying length)

  1. #1
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Macro to format list (varying length)

    Good Morning All,

    I am looking for a simple macro that can format a list that varies in size. The list would be 1 column (Column A) and could contain anywhere from 1 to 999 IDs (varies daily).

    Here is an example of a before and after:

    Before:
    **Note each item in the list will be exactly 6 characters

    User01
    User02
    User03
    User04
    User05

    After:

    (uid=User01)
    (uid=User02)
    (uid=User03)
    (uid=User04)
    (uid=User05)

    Thanks in advance for any help you guys can provide. You guys are always helpful.

    Tim
    Last edited by TShelt; 04-11-2013 at 08:26 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Macro to format list (varying length)

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Macro to format list (varying length)

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Macro to format list (varying length)

    do you need the contents changed or only the format? a custom number format would cater for the appearance
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  5. #5
    Registered User
    Join Date
    10-14-2011
    Location
    St. Louis, Missouri
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Macro to format list (varying length)

    Thanks a million for the quick reply, you guys are awesome. Working like a charm.

+ 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