+ Reply to Thread
Results 1 to 1 of 1

Arranging columns by name (non-alphabetic order)

  1. #1
    Registered User
    Join Date
    08-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Arranging columns by name (non-alphabetic order)

    Hi,

    I have a spreadsheet with 30 columns and around 2,500 rows per column. The columns are an extract from a SharePoint instance and are not in the order I need them to be in for my purposes (import into another system).

    I have a macro that prepares the data with various actions, including echoing a previously recorded cut & paste actions, something like this:

    Please Login or Register  to view this content.
    ... however I think that's a bit rubbish and not nearly as efficient as it could be. It certainly slows my laptop down when it's running!

    I'd prefer to have a way of listing the column names in the desired order and some VBA to sort the columns into that order. That would hopefully give me the flexibility to easily amend the order &/or number of columns by adding or subtracting column names from the list embedded in the VBA. Er, if that makes sense.

    Can anyone help me?

    Cheers

    M

  2. #2
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Arranging columns by name (non-alphabetic order)

    suppose columns names are like this below (of course it can be sorsted alphatically forget about it)
    see the numbers given in row 2
    sort (left to right) whole data according to row 2 and you can then delete row 2
    I am not an expert. better solutions may be available
    [email protected]

  3. #3
    Valued Forum Contributor
    Join Date
    06-17-2009
    Location
    Chennai,India
    MS-Off Ver
    Excel 2003,excel 2007
    Posts
    678

    Re: Arranging columns by name (non-alphabetic order)

    suppose columns names are like this below (of course it can be sorsted alphatically forget about it)
    see the numbers given in row 2
    sort (left to right) whole data according to row 2 and you can then delete row 2

    a s f d g
    1 5 3 2 4

+ 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