I am trying to select (with a macro) the entire WS. The code below would work if there were no empty lines. How can I change it so this macro will select the entire page even with 1 or 2 empty rows.
IT'S FRIDAY;>))
hope everyone has a GREAT weekend.
Code:
lastNameRow = Range("F" & Rows.Count).End(xlUp).Row
ActiveSheet.ListObjects.Add(xlSrcRange, Range("A1:L" & lastNameRow), , xlNo).Name = _
"Table1"
Range("Table1[#All]").Select
IT'S FRIDAY;>))
hope everyone has a GREAT weekend.