Find Row Below

Big_Dawg

New Member
Joined
Jan 15, 2008
Messages
27
I want to go to the cell below a range of data. My macro keeps returning the last row + next row for the range. I only want the row below the range not to include the last row itself. How can I change the following?:

LastRow = Range("L" & Rows.Count).End(xlUp).Row
vRange = "L" & (LastRow + 1)
Range(vRange).Select
With Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.EntireRow.Clear
End With
 

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)
Not sure what you mean, try adjusting this:
Rich (BB code):
Range("L1").End(xlDown).Offset(1,0).Select
Where L1 is the first row your data is in (change to suit)
 
Upvote 0
I too am unclear as to what you mean. Maybe:
Code:
LastRow = Range("L" & Rows.Count).End(xlUp).Row
Range("L" & LastRow + 1).EntireRow.ClearContents
 
Upvote 0
For this example, the range is L9 to the last of L20. I want the macro to select L21 which is a blank cell (the cell below the primary range). The primary range will change from time to time.
 
Upvote 0
For example, if the range is L6 to L20, I need to go to Cell L21. How do incorporate into the macro?
 
Upvote 0
Glad to be of help.

Was your opening macro intended to clear all data below the last used row defined from ColumnL? I wasn't sure about that, but if so you might try
Code:
With Range("L" & Rows.Count)
   Range(.End(3)(2), .Cells).EntireRow.Delete
End With
It's rarely if ever that one needs to use select anything within a macro in order to proceed.

And, to explain a bit more, End(3) means Xlup. And the (2) means the next cell down from this.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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