I am trying to find the last cell in a column that is populated with data in VBA. The problem is, in the range, there are blank cells. Is there any way to select the last cell with data if there are blanks? Any help would be greatly appreciated! I have pasted my range definitions below.
If Range("BL2") <> "" Or Range("BM2") <> "" Then
Set usr11 = Range("BL:BL")
Set usr12 = Range("BM:BM")
This will work for you
Using Find
This will work on the ActiveSheet
I'm not sure if this is what you're looking for
This is what I use to get the last row; just give it a column and a sheet.
Then you can use it like this:
Similar function to get the last column with data: