Hi, I have written the following macro to create a table, however the raw data will regularly change the number of columns and rows so I want to be able to change this section Range("$A$1:$F$991") to a dynamic range to account for all columns or rows that may have data in them. Any help would be great.
Cheers, Aaron.
Sub Share_Report()
'
' Share_Report Macro
'
Range("A1").Select
Application.CutCopyMode = False
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$1:$F$991"), , xlYes).Name = _
"Table1"
End Sub
Cheers, Aaron.
Sub Share_Report()
'
' Share_Report Macro
'
Range("A1").Select
Application.CutCopyMode = False
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$1:$F$991"), , xlYes).Name = _
"Table1"
End Sub