Hello all,
I have a piece of VBA that identifies the last row in a column, so that I can assign values:
My issue, is I recently formatted the data on the worksheet as a table, so that visually it is easy to read and edit, and to delete and add rows. Now, my Lastrow doesn't work as it selects the row after the end of the table instead of the first blank row in Column A. Is there something simple I can change in my code to look for my blank values in the table?
I have a piece of VBA that identifies the last row in a column, so that I can assign values:
VBA Code:
Lastrow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
Range("A" & Lastrow).Offset(1, 1).Select
BankNo = ActiveCell
My issue, is I recently formatted the data on the worksheet as a table, so that visually it is easy to read and edit, and to delete and add rows. Now, my Lastrow doesn't work as it selects the row after the end of the table instead of the first blank row in Column A. Is there something simple I can change in my code to look for my blank values in the table?