Hello All.
I have the code below, which places the table on A1:M.
I'm having troubles placeing the table on A3:M. when I change the code of $A$1 : M, to $A$3:M. excel places the table on A1:M with crazy headers...basically if is not working.
So how do I get the table on A3:M, so I have 2 rows above that are blank?
Thanks for the help
I have the code below, which places the table on A1:M.
I'm having troubles placeing the table on A3:M. when I change the code of $A$1 : M, to $A$3:M. excel places the table on A1:M with crazy headers...basically if is not working.
So how do I get the table on A3:M, so I have 2 rows above that are blank?
Thanks for the help
VBA Code:
LastRow = Range("A:A").Cells.Find("*", _
SearchOrder:=xlByRows, searchdirection:=xlPrevious).Row
' MsgBox "The Last Non-Blank Row Is " & LastRow
'Adding Table
ActiveSheet.ListObjects.Add(xlSrcRange, Range("$A$1:M" & LastRow), , xlYes).Name = _
"Table6"
Range("Table6[#All]").Select