0

I have the following sheet. Rows are not a fixed number and can vary.

enter image description here

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.

enter image description here

I am just starting off with VBA and macros, so not much effort from my side to show, apologies.

Thanks!

user1525612
  • 1,864
  • 1
  • 21
  • 33
  • Possible duplicate of [Error in finding last used cell in VBA](http://stackoverflow.com/questions/11169445/error-in-finding-last-used-cell-in-vba) – Wolfie Apr 28 '17 at 09:41

1 Answers1

2
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.

Pearli
  • 159
  • 1
  • 5