+ Reply to Thread
Results 1 to 3 of 3

Include additional column to sort in this code

  1. #1
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,171

    Include additional column to sort in this code

    Hello Experts
    I have this code shared by bebo012999 which sorts one column of data only. I want to include column B and sort the data. Also I want to align the cells of column A to the left and remove the borders. I tried to include column B by editing the code but I am getting an error each time. Hope someone can help me to edit and correct this code with the additional requirement in the code.
    This is the edited code by it is not sorting the first row below the heading (2nd row in the sheet).
    Please Login or Register  to view this content.
    TYIA
    Attached Files Attached Files
    Last edited by RAJESH SHAH; 08-26-2023 at 01:28 AM. Reason: #Solved
    "Where there is a will there is a way".

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Include additional column to sort in this code


    Hello,

    sort logic error : include at least the headers row in the range to sort or parameter the sort with no header …

    If you do not understand only : do it manually and once you succeed go back to the previous state,
    activate the Macro Recorder and redo the same then you could compare with the generated code …

  3. #3
    Forum Contributor
    Join Date
    11-25-2021
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    2,171

    Re: Include additional column to sort in this code

    The above issue is solved.

+ 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. to include an additional criteria to match search value
    By michael35 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-07-2019, 03:52 PM
  2. Modify VBA code to include additional columns
    By jbolyard in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-09-2018, 10:39 AM
  3. [SOLVED] VBA to sort by 1 column and include the other data that comes with it
    By Maxy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2013, 04:58 AM
  4. Auto sort code to include adjacent columns
    By Frantelle in forum Excel General
    Replies: 3
    Last Post: 11-17-2012, 11:47 AM
  5. Sort column and include data validation input message
    By JimmyA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2012, 08:18 AM
  6. Modifying VBA to include one additional worksheet?
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-22-2010, 11:01 AM
  7. How to sort on column C, but not include any rows with an x in column L
    By Launchnet in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2010, 10:23 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