+ Reply to Thread
Results 1 to 4 of 4

Column Sorting macro

  1. #1
    Registered User
    Join Date
    12-12-2015
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    46

    Post Column Sorting macro

    Hello,

    I'm trying to sort out some data using Auto Filter from Sheet1 to Sheet2 by a macro. The problem is that it's only sorting in Alphabetical order. Like in the code, I have hidden all columns and its showing data of A,B,C. I want the data columns from Sheet1 in order A,K,M,N,O,I,F,AF,B,C and Y.

    Please help. Here is the code:

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Column Sorting macro

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    12-12-2015
    Location
    Karachi, Pakistan
    MS-Off Ver
    2016
    Posts
    46

    Re: Column Sorting macro

    Thanks man.. Worked like a charm.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Column Sorting macro

    You're welcome. Thanks for the feedback.

+ 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. Why Can't I Get Rid of The Column Header Prompt (Sorting)? - Macro
    By ahilty in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-12-2013, 03:49 PM
  2. Sorting column in protected worksheet using a macro
    By kleclark in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2013, 08:24 PM
  3. Column Sorting Macro Problem
    By rush872112 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-16-2013, 08:59 PM
  4. Sorting by column using macro
    By charissa12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2010, 02:01 AM
  5. Column sorting macro
    By prutter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2009, 08:37 AM
  6. Macro for sorting a single column
    By rmarroq in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2009, 11:04 AM
  7. Sorting 3 column with macro
    By seanyeap in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-18-2008, 09:15 AM
  8. Macro for sorting by column
    By bacton in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-27-2005, 12:26 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