I have a range that I need to select. The upper regions of the range is A2 which I can get using the following command -
Cells(2, 1)
The lower range, I can get using the following commands -
Cells(Rows.Count, 1).End(xlUp).Row
Cells(5, Columns.Count).End(xlToLeft).Column
How can I combine all my cells command into something that range will select?
I tried
range=(cells(2,1)),(Cells(Rows.Count, 1).End(xlUp).Row),(Cells(5, Columns.Count).End(xlToLeft).Column).select
but I get a format error.