+ Reply to Thread
Results 1 to 3 of 3

Custom Sort looping through worksheets and workbook

  1. #1
    Registered User
    Join Date
    03-20-2017
    Location
    Lancashire, England
    MS-Off Ver
    2010
    Posts
    40

    Custom Sort looping through worksheets and workbook

    Hi Guys,

    I have recorded the following Macro to sort columns but need to make some modifications to it so it does what I need to achieve.

    I am looking for a code that will sort columns B,C,D based on data in column B starting at row 4 (column B can have different number of rows on different worksheets) so I would like the code to find last row of column B

    Also the data that requires sorting repeats every 3 columns so I need it to loop through each sheet until the last column. (eg. E,F,G based on column E H,I,J based on column H etc.) all starting at row 4


    Please Login or Register  to view this content.
    Thanks for any help.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,305

    Re: Custom Sort looping through worksheets and workbook

    Try it like this:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    03-20-2017
    Location
    Lancashire, England
    MS-Off Ver
    2010
    Posts
    40

    Re: Custom Sort looping through worksheets and workbook

    Hi Bernie,

    That is exactly what I was looking for. You have my life a whole lot easier.

    Many thanks

+ 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. Problem looping thru worksheets in a workbook..
    By Hondahawkrider in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2015, 03:26 PM
  2. Macro looping through several worksheets in one workbook
    By awcwa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2013, 05:26 PM
  3. [SOLVED] Macro Wanted for looping thru worksheets in one workbook and pasting to another workbook!!
    By eduardito in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-03-2012, 07:43 AM
  4. Looping accross all worksheets in a workbook
    By gspencer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-21-2011, 04:06 PM
  5. Looping through worksheets in a workbook to pull data
    By fecurtis in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-02-2008, 01:40 PM
  6. Workbook looping to many worksheets
    By L. Howard Kittle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-14-2006, 05:10 PM
  7. [SOLVED] Looping worksheets in workbook
    By Wylie C in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-18-2005, 05:06 PM

Tags for this Thread

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