I'm a VBA rookie.
I have this code from recording. All I'm doing is selecting all data, and making it into a table. Problem is the amount of data, in terms of rows, always changes (columns are constant). How can I make this dynamic so it counts the number of rows and makes the table accordingly.
Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$1:$AC$385"), , xlYes).Name = _
"Table1"
Problem is the hard-coded "$AC$538" thanks!
Bookmarks