+ Reply to Thread
Results 1 to 2 of 2

Macro Sort Alphanumeric Strings Row by Row

  1. #1
    Registered User
    Join Date
    06-01-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Macro Sort Alphanumeric Strings Row by Row

    Here is an example of the sheet of data I have:
    A B C D E F
    S2 L5 E5 CN


    S1 E5 L5 CN

    S1 L5 E5 CN

    H2 L5 E5 CN
    S1 M5 E5 L5 CN



    S2 CN E5





    S2 CN E5

    H2 CN E5
    M5 DF Q4 H2 B3 CN


    Each two letter combination is in its own cell. I want the macro to sort each row one by one in alphabetical order. I can do this manually by using the sort options and literally selecting every row one by one and sorting it, but there has to be a way to write a macro to do this. There are a dynamic number of rows so I need the range to go to the last row with data in it. Any help would be much appreciated.

    Thanks,
    J

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Macro Sort Alphanumeric Strings Row by Row

    Your question is better explained with a sample file. Why dont you attach one? And also show an output sheet with how you want the data to look.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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