I am trying to select a range in my Excel Sheet but I just can't figure out how. The data is in a way that in Row 2
all cells are filled to the end and in Column A
all cells are filled to the bottom. But within the table there can be empty cells. So the bottom right corner can be empty as well. I'd like the range to start at A3
.
I have tried to select the range in this way:
Range("A3",Range("ZZ2").End(xlToLeft).Range("A1000000").End(xlUp)).Select
or this way:
Range("A3",Range("A1000000").End(xlUp).Range("ZZ2").End(xlToLeft).).Select
But either way the whole table never gets selected because there is nothing in the bottom right cell. I feel like there must be a easy solution to this but I just can't see it.
This is a simple example of what the table could look like. The range I want to select is the green area.