AutoFilter row limit in Excel 2007?

Excel_VBA

New Member
Joined
Dec 19, 2009
Messages
42
Have a spreadsheet with 112,961 rows of data. The first row contains field names, all other rows have data.

The columns are from A to W. The following columns are blank (at least they appear to be): G, L, T, V and W. When I select the AutoFilter, it appears across all columns from A - W.

The problem is that the filter picks up data down to row 102,135. From row 102,136 to 112,961, those rows of data are not being picked up. I verified this by adding values with certain values filtered in and filtered out, then compared to the total of all values unfiltered.

I don't see a blank or hidden row after 102,135. I suppose the answer might be in something different from row 102,135 vs. the rows after it. But I don't see anything that stands out as an anomaly.

Why doesn't my AutoFilter pick up to the last row?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Do any of the rows past this apparent last one contain formulas rather than hardcoded values? If so, are you using SUBTOTAL formulas anywhere?
 
Upvote 0
How are you applying Autofilter? Is it manually thru the Excel interface or via code? If so, please post the code. I take it you have tried simple things like removing Autofilter, saving the workbook down, closing and reopening and applying Autofilter again?
 
Upvote 0
How are you applying Autofilter? Is it manually thru the Excel interface or via code? If so, please post the code. I take it you have tried simple things like removing Autofilter, saving the workbook down, closing and reopening and applying Autofilter again?

I'm applying it manually, no VBA code. Yes to all of the other questions.
 
Upvote 0
Remove Autofilter from this sheet and then, with it still visible in the Excel window, open up the VBE (Alt+F11), go to the Immediate Window (Ctrl+G) and type in the following (and hit Enter at the end):

Range("A1:W112961").Autofilter

Then type in the following and post in your reply what is returned:

?Activesheet.Autofilter.Range.Address

Hopefully it will return A1:W112961. If so, try applying your filters and ensure the full range is filtered.
 
Upvote 0
Hello Richard,

I'm also having a slight problem with autofilter. I'm searching for solutions and i came across this thread. I followed your instructions and i get this.

Rows("2:329").autofilter
?Activesheet.Autofilter.Range.Address
$2:$1002

Whenever i run my macro that applies autofilter from row 2 to the last row of data, my row numbers after the last few rows goes like this,

327
328
329
1003
1004
1005

I can't seem to solve it. Can you help?

Thanks,
Shie Boon
 
Upvote 0
You can't have entirely blank rows in 330:1002. Assuming you don't think you need anything that might be there then you can select all these rows and delete them then apply Autofilter again and you should see that the Autofilter range is from 2:329.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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