Reputation: 2024
I have the following sheet. Rows are not a fixed number and can vary.
I want to select one cell below the last row in column B. It will always be column B, but sometimes there are more rows.
I am just starting off with VBA and macros, so not much effort from my side to show, apologies.
Thanks!
Upvotes: 0
Views: 2792
Reputation: 159
Dim Rng As Long
Rng = Cells(Rows.Count, 2).End(xlUp).Row + 1
Cells(Rng, 2).Select
The variable Rng contains always the row number of the last cell in B plus one row.
Upvotes: 2