Next Bland Row

johnbird1988

Board Regular
Joined
Oct 6, 2009
Messages
199
Hello

How do I find the next blank row when the data is filtered?

At the moment my code would find the last item in the filtered list and then select the row underneath it nowever this is not the loast row.

Please Help

Thank you

John
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Code:
Dim LastRow&, nextBlankRow&
LastRow = Range("A" & Rows.count).End(xlUp).Row
nextBlankRow = LastRow + 1
 
Upvote 0
Darn it, I really was hoping to answer a question about a bland row.

I have a lot of experience, since most of my data is really bland!
 
Upvote 0
Thank you for the reply. I know how to find the next blank row but if you filter this range and them try and find the next blank row it does not.

This code only find the next blank row but does not work when the data has a filter

Code:
Dim LastRow&, nextBlankRow&
LastRow = Range("A" & Rows.Count).End(xlUp).Select
nextBlankRow = LastRow + 1

Thank you

John
 
Upvote 0
Is the row you're after the first blank row when the data's unfiltered?

Or is it a blank cell in a row that appears as visible once the filter is applied?
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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