I have tried to define a lastrow code that would return the last row value of the last non empty cell in a excel table. (ITS FORMATTED AS A TABLE)
My exceltable have
try this
Dim DataRange As Range Set DataRange = Range("A1:M" & LastRow)