I keep getting the error message of "application defined or object defined error" at the last step when I need to select the defined "TABLE1".
Appreciate your help!
Dim last_row As Long
last_row = ActiveSheet.Range("A1048576").End(xlUp).Row
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$1:$U$" & last_row), , xlYes).Name = _
"Table1"
ActiveCell.Range("Table1[#All]").Select