Advanced filter won't insert rows in a data table?

kirby96

New Member
Joined
Jul 9, 2010
Messages
18
I have a macro that advance filters some data according to a criteria range, and then places the desired fields in a data table on another worksheet.

The advanced filter code is straight forward and works fine, but I notice that unlike when I simply copy and paste data into a data table, in this case the table doesn't automatically expand to accomodate additional rows. For example, if an existing table called "Table1" is 10 rows long, and my filtered data is 15 rows long, the first 10 rows of the filtered data populate the table as desired, but the 5 remaining rows are simply pasted below and outside the Table1 range (so unable to filter/sort, etc.) .
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Whoops... forgot the key sentence: I'm wondering if someone understands why this is the case, and if so, is there a better approach? (not looking for specific code...)
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,292
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top