I have a sheet "Missing". This sheet is generally a part of data from my another sheet "data".
I would like to have the content of my missing sheet always wrapped in a table.
I tried the below code,
Sub LoopingThroughTable()
Sheets("Missing").ListObjects.Add(xlSrcRange, Range("$B$1:$D$16"), , xlYes).Name = _
"Table19"
Sheets("Missing").ListObjects("Table19").TableStyle = "TableStyleLight12"
End Sub
but with this code, I need to always mention the range. As I told earlier, Since it is an data from another sheet, the row length can vary.
so eevrytime I extract the data from my sheet Data to result, I always wanted to draw a table only for the available content.
Can anyone help, how I can do this ?