+ Reply to Thread
Results 1 to 8 of 8

Sort Multiple Worksheets with identical layout

  1. #1
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Sort Multiple Worksheets with identical layout

    Hello everyone,
    almost done with my baby tool for my Staff.
    Need your help my masters.

    I have an array of worksheets
    Please Login or Register  to view this content.
    I tried recording a macro but it got messy.
    I need to sort all the sheets the same way

    Range B7:Q90,B95:Q120
    Each needs to be sorted as follows:
    "B7:B90,B95:B120" Ascending
    then
    "C7:C90,C95:C120" Ascending

    each range has a header, i mean 7:95 & 95:120.
    I just need the cells in B7:Q90 and B95:Q95 to be affected, rest to stay intact.

    Is that doable? Can you please help?
    Attached Files Attached Files
    Last edited by annazet; 04-26-2017 at 02:13 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,507

    Re: Sort Multiple Worksheets with identical layout

    Should be doable. Suggest you post a sample workbook with some typical, non-sensitive data. Ideally, mock up the expected results for one of the sheets.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    422

    Re: Sort Multiple Worksheets with identical layout

    Try this:
    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    422

    Re: Sort Multiple Worksheets with identical layout

    Another option, which could be helpful if you later add more weeks is to apply the sort based on their tab colour (i.e. sheets that have tabs that are dark red (.Color = 354999) or are not coloured (.ColorIndex = -4142).
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Re: Sort Multiple Worksheets with identical layout

    Thak you! It does work! But... I realized i do need the range to be in columns B to Q.
    How do I apply the above so that all rows between B7:Q90 and B95:Q120 are sorted ?

    SetRange("B7:Q90") etc?

  6. #6
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    422

    Re: Sort Multiple Worksheets with identical layout

    The first pair of sorts does only column B in ascending order. The second does only column C in descending order. To sort them together, one may have to contradict the other, never mind columns D, E, F, ...Q.

    I'm only guessing, but this might be what you're after:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-07-2013
    Location
    London
    MS-Off Ver
    Excel 2019
    Posts
    105

    Re: Sort Multiple Worksheets with identical layout

    Thank you so much! managed to figure that bit out. Happy thanks to you I've learned something new. Thanks again!

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,507

    Re: Sort Multiple Worksheets with identical layout

    Thanks for the rep.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Creating multiple identical worksheets
    By Brian Ferris in forum Excel General
    Replies: 2
    Last Post: 08-18-2017, 03:03 AM
  2. Adding Multiple Identical tables to a Master Identical table
    By dlogfx in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2017, 04:41 PM
  3. Bestway to create MULTIPLE worksheets that are IDENTICAL accept for their name
    By JamesGoulding85 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-05-2013, 04:41 AM
  4. Identical worksheets, identical data, different arrangements
    By Hooty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2012, 05:02 PM
  5. Importing selective data from multiple identical worksheets to master.
    By nknam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-17-2012, 06:56 PM
  6. why cant i get identical sort from identical code
    By jimb0693 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2010, 01:04 PM
  7. [SOLVED] Protection of identical cells on multiple worksheets
    By shawnlacey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-16-2006, 04:15 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