Here's one way (I think this method originated from Bob Umlas) :-
Dim LastRow As Long, lastCol As Long
Dim lastCell As Range
LastRow = Cells.Find(What:="*", _
SearchDirection:=xlPrevious, _
SearchOrder:=xlByRows).Row
lastCol = Cells.Find(What:="*", _
SearchDirection:=xlPrevious, _
SearchOrder:=xlByColumns).Column
Set lastCell = Cells(LastRow, lastCol)
Range(Range("A1"), lastCell).Select
That's better but still a problem
Thank you David, but one problem, what this does is select everything I have on my spreadsheet as part of the same range, no matter how many rows and columns separate my actual range from other cells that are unrelated but occupied somewhere else on the same sheet.
This looks like a step in the right direction, but what I'd like is for the macro to stop trying to select a larger range when it encounters its first totally empty row and first totally empty column. I hope this is a clear way to describe what I am hoping for.
Jennifer J
Re: That's better but still a problem
Check whether this does what you need :-
Range("A1").CurrentRegion.Select
Wow, that does just what I'm looking for, and it's so short of a macro I wouldn't have guessed. Thank you David!!! :)
Jennifer J
Check whether this does what you need :- Range("A1").CurrentRegion.Select : Thank you David, but one problem, what this does is select everything I have on my spreadsheet as part of the same range, no matter how many rows and columns separate my actual range from other cells that are unrelated but occupied somewhere else on the same sheet. : This looks like a step in the right direction, but what I'd like is for the macro to stop trying to select a larger range when it encounters its first totally empty row and first totally empty column. I hope this is a clear way to describe what I am hoping for. : Jennifer J :