+ Reply to Thread
Results 1 to 3 of 3

How to create macro to sort multiple tables in dynamic range?

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question How to create macro to sort multiple tables in dynamic range?

    Hi all, need some help with this sort macro, been trying for days to crack it. I'm trying to sort multiple tables by a single column (eg Header10) in a worksheet. Problem is the tables have fixed columns but different (dynamic) row numbers. Also for the sorting, the first row data (bolded) in each table range has to remain, ie sort from 2nd row onwards (I'm guessing that can be solve with Offset). Attached a sample data. Also can it work if more tables were to be added into the worksheet?

    TestSort.xls

    Appreciate if someone can help. Thanks!

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: How to create macro to sort multiple tables in dynamic range?

    Hi Munnie,
    try it
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: How to create macro to sort multiple tables in dynamic range?

    Hi Nilem,

    Thanks! It works like a charm
    Just curious as to why the macro won't work if the data cells are linked (ie vlookup from another worksheet). Any reason?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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