Hello, I am fairly new to VBA.
I have a long list filled with values where some are blanks. I want to select a range between the last value found in A-column, for example A300 and the last value found in B-column, for example B320.
So far my code is:
Dim IRow As Long
Dim ICol As Long
Dim rng As Range
IRow = Cells(1, Rows.Count).End(xl).End(xlUp).Row
ICol = Cells(2, Columns.Count).End(xlToLeft).Column
I wonder how I should code rng to select all values between A300 and B320.
Thanks in advance.
I have a long list filled with values where some are blanks. I want to select a range between the last value found in A-column, for example A300 and the last value found in B-column, for example B320.
So far my code is:
Dim IRow As Long
Dim ICol As Long
Dim rng As Range
IRow = Cells(1, Rows.Count).End(xl).End(xlUp).Row
ICol = Cells(2, Columns.Count).End(xlToLeft).Column
I wonder how I should code rng to select all values between A300 and B320.
Thanks in advance.