parry
MrExcel MVP
- Joined
- Aug 20, 2002
- Messages
- 3,355
Hi, Im sure Ive seen something here to quickly find the last row with data in a column but cant see it now.
I have the following code ....
dim rngBank as range
For Each rngBank In ThisWorkbook.Worksheets("sheet1").Range("L:L")
Rather than range L:L I only want from L1 until last row with data in it.
I have previously assigned a variable to Selection.End(xlDown).Select and then found row for this then gone back to the top but I have seen people select the last row (65000+) in a statement that does this in one line.
Any ideas?
Thanks
Parry
I have the following code ....
dim rngBank as range
For Each rngBank In ThisWorkbook.Worksheets("sheet1").Range("L:L")
Rather than range L:L I only want from L1 until last row with data in it.
I have previously assigned a variable to Selection.End(xlDown).Select and then found row for this then gone back to the top but I have seen people select the last row (65000+) in a statement that does this in one line.
Any ideas?
Thanks
Parry