Hi,
I was previously given some code that would take a list and sort it by check # and then subtotal amounts by check # with a grand total at the end. The code was associated with a 'button' on the page to click whenever you wanted to create the summation page.
When I was given the code I must not of specified that the rows are not static (although the columns are) so when I ran this for a large number of items it appears to only sort the first 9 or so lines and then commence to subtotal by check #.
I need the code to sort the complete list (minus the row of column titles) given that the length of the list is unknown.
Here's what the page looks like where A1 through G1 are the column headings. Data begins with A2 and goes through G2. The row count are infinite and different each time.
[TABLE="width: 759"]
<colgroup><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" span="4" style="width: 69pt;"></colgroup><tbody>[TR]
[TD="class: xl69, width: 69"]LOT[/TD]
[TD="class: xl69, width: 69"]Description[/TD]
[TD="class: xl70, width: 69"]QTY[/TD]
[TD="class: xl71, width: 69"]Client Share[/TD]
[TD="class: xl72, width: 69"]PAID[/TD]
[TD="class: xl73, width: 69"]DATE PAID[/TD]
[TD="class: xl72, width: 69"] CHECK #[/TD]
[TD="width: 69, align: left"]<img width="136" height="42" alt="Create Client Summary">
<tbody>
[TD="class: xl65"][/TD]
</tbody>[/TD]
[TD="class: xl65, width: 69"][/TD]
[TD="class: xl65, width: 69"][/TD]
[TD="class: xl65, width: 69"][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]mirror ornate[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]40.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]gold mirror oval[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]15.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]round table gold grim[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]stork[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]62.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]gold mirrored candle holders[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl64, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]caned vanity chair[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]25.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]demilune table[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]100.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]NM mirrors[/TD]
[TD="class: xl74, align: right"]3[/TD]
[TD="class: xl64, align: right"]55.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]drop down small desk[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl76, align: right"]62.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]RECORD PLAYER[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]side table w/glass[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]25.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]sunflower oil painting[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]KJV bible[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]37.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]TK Beside Still Waters[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]32.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]TK Light of Peace[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]75.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]calligraphy michael podesta[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]20.60[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]Sunflowers on canvas[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]30.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]oil paintings whimsical instruments[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl64, align: right"]100.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]coral silk french chairs[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl76, align: right"]225.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]ice cream chairs[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl64, align: right"]150.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]red velvet vanity chair[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl76, align: right"]40.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]gold chair pink seat[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]17.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl77, align: right"]7/20/18[/TD]
[TD="class: xl78"] 1186[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]gold marble pedestal table[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]52.92[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]7/20/18[/TD]
[TD="class: xl66"] 1186[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"][/TD]
[TD="class: xl75, width: 69"]cherry side table[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl76, align: right"]60.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]velvet stools[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl64, align: right"]25.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]7/20/18[/TD]
[TD="class: xl66"] 1186[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]side table tile top[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl76, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]child rolltop desk[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]32.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]7/20/18[/TD]
[TD="class: xl66"] 1186[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Here is the Code I was provided with for the worksheet CLIENT LOG. The macro is SUBTOTAL2
Like I said, it works great if I presort the page but the code was supposed to do that and seems to only sort the first 9 lines of data.....
Thanks in advance for the help.
I was previously given some code that would take a list and sort it by check # and then subtotal amounts by check # with a grand total at the end. The code was associated with a 'button' on the page to click whenever you wanted to create the summation page.
When I was given the code I must not of specified that the rows are not static (although the columns are) so when I ran this for a large number of items it appears to only sort the first 9 or so lines and then commence to subtotal by check #.
I need the code to sort the complete list (minus the row of column titles) given that the length of the list is unknown.
Here's what the page looks like where A1 through G1 are the column headings. Data begins with A2 and goes through G2. The row count are infinite and different each time.
[TABLE="width: 759"]
<colgroup><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" style="width: 69pt;"><col width="69" span="4" style="width: 69pt;"></colgroup><tbody>[TR]
[TD="class: xl69, width: 69"]LOT[/TD]
[TD="class: xl69, width: 69"]Description[/TD]
[TD="class: xl70, width: 69"]QTY[/TD]
[TD="class: xl71, width: 69"]Client Share[/TD]
[TD="class: xl72, width: 69"]PAID[/TD]
[TD="class: xl73, width: 69"]DATE PAID[/TD]
[TD="class: xl72, width: 69"] CHECK #[/TD]
[TD="width: 69, align: left"]<img width="136" height="42" alt="Create Client Summary">
<tbody>
[TD="class: xl65"][/TD]
</tbody>
[TD="class: xl65, width: 69"][/TD]
[TD="class: xl65, width: 69"][/TD]
[TD="class: xl65, width: 69"][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]mirror ornate[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]40.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]gold mirror oval[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]15.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]round table gold grim[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]stork[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]62.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]gold mirrored candle holders[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl64, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]caned vanity chair[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]25.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]demilune table[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]100.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]NM mirrors[/TD]
[TD="class: xl74, align: right"]3[/TD]
[TD="class: xl64, align: right"]55.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]drop down small desk[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl76, align: right"]62.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]RECORD PLAYER[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]side table w/glass[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]25.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]sunflower oil painting[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]KJV bible[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]37.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]TK Beside Still Waters[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]32.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]TK Light of Peace[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]75.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]calligraphy michael podesta[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]20.60[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]Sunflowers on canvas[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]30.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]oil paintings whimsical instruments[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl64, align: right"]100.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]4/30/18[/TD]
[TD="class: xl66"] 1129[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]coral silk french chairs[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl76, align: right"]225.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]ice cream chairs[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl64, align: right"]150.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]red velvet vanity chair[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl76, align: right"]40.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]gold chair pink seat[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]17.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl77, align: right"]7/20/18[/TD]
[TD="class: xl78"] 1186[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]gold marble pedestal table[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]52.92[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]7/20/18[/TD]
[TD="class: xl66"] 1186[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"][/TD]
[TD="class: xl75, width: 69"]cherry side table[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl76, align: right"]60.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]velvet stools[/TD]
[TD="class: xl74, align: right"]2[/TD]
[TD="class: xl64, align: right"]25.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]7/20/18[/TD]
[TD="class: xl66"] 1186[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]side table tile top[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl76, align: right"]50.00[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]6/19/18[/TD]
[TD="class: xl66"] 1169[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]x[/TD]
[TD="class: xl75, width: 69"]child rolltop desk[/TD]
[TD="class: xl74"][/TD]
[TD="class: xl64, align: right"]32.50[/TD]
[TD="class: xl66"] y[/TD]
[TD="class: xl67, align: right"]7/20/18[/TD]
[TD="class: xl66"] 1186[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Here is the Code I was provided with for the worksheet CLIENT LOG. The macro is SUBTOTAL2
Code:
Sub SUBTOTAL2()'
' SUBTOTAL2 Macro
'
'
ActiveWindow.SmallScroll ToRight:=-16
ActiveWindow.SmallScroll Down:=1
ActiveWindow.SmallScroll ToRight:=-1
ActiveWindow.SmallScroll Down:=5
ActiveWindow.SmallScroll ToRight:=-1
ActiveWindow.SmallScroll Down:=1
ActiveWindow.SmallScroll ToRight:=1
ActiveWindow.SmallScroll Down:=-199
Columns("F:F").Select
ActiveWorkbook.Worksheets("CLIENT LOG").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("CLIENT LOG").Sort.SortFields.Add Key:=Range( _
"G2:G11"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("CLIENT LOG").Sort
.SetRange Range("A1:G11")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Cells.Select
Range("B1").Activate
Selection.SUBTOTAL GroupBy:=6, Function:=xlSum, TotalList:=Array(4), _
Replace:=True, PageBreaks:=False, SummaryBelowData:=True
End Sub
Like I said, it works great if I presort the page but the code was supposed to do that and seems to only sort the first 9 lines of data.....
Thanks in advance for the help.