+ Reply to Thread
Results 1 to 2 of 2

Sorting variable rows

  1. #1
    Forum Contributor
    Join Date
    03-16-2004
    MS-Off Ver
    2016
    Posts
    175

    Sorting variable rows

    How do I write a varying range to sort.Got this now

    ActiveCell.Range("A1:Q11").sort Key1:=ActiveCell.Offset(0, 4).Range("A1"), _
    Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:=False _
    , Orientation:=xlTopToBottom, DataOption1:=xlSortNormal

    Problem is the next range's parameters are allways either smaller or bigger than ("a1:q11") in rows. The columns are allways the same.And there are a alot of these small tables to sort on a sheet.

  2. #2
    Forum Contributor
    Join Date
    03-16-2004
    MS-Off Ver
    2016
    Posts
    175
    Forgot to mention that each table sits below the other seperated by a space.

+ 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