+ Reply to Thread
Results 1 to 5 of 5

Sort VBA script - Column Ascendning

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Sort VBA script - Column Ascendning

    Hello

    I need help with a script that sorts column C to BC in ascending order.
    First Column C in ascending order. Then sort column D in ascending order. Then E and so on. Until column BC is sorted in ascending order.

    I recorded the procedure but I think there may be simple loop to code instead which loops from one column til the last one. Is it possible?

    Here is the code I have so far.

    Please Login or Register  to view this content.

    /Anders

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Sort VBA script - Column Ascendning

    Maybe like this.
    Note: Try on a copy of the file
    Please Login or Register  to view this content.
    Teach me Excel VBA

  3. #3
    Forum Contributor
    Join Date
    03-14-2005
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    329

    Re: Sort VBA script - Column Ascendning

    Perfect!!! It works just as I wanted!

    Thanks.

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Sort VBA script - Column Ascendning

    Glad to have helped

  5. #5
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Sort VBA script - Column Ascendning

    If it solves the issue please mark your thread as "Solved" and as a good gesture press start button under the post which helped you.

+ 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. Replies: 1
    Last Post: 03-29-2018, 07:58 AM
  2. Need help with VBA script to sort records
    By qwertybirdy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-18-2014, 02:20 PM
  3. VBA script to sort data
    By Raury in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2014, 06:58 AM
  4. [SOLVED] I have a sort macro. How to add script to preselect rows to sort based on column value?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2014, 02:25 AM
  5. script for sort z to A in a column
    By saranyabi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2013, 11:40 AM
  6. Sort/Remove Script?
    By rosscoloco in forum Excel General
    Replies: 11
    Last Post: 07-05-2009, 12:33 AM
  7. Sort/Remove Script?
    By rosscoloco in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2009, 03:52 AM

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