Hi guys,
I have written a macro with the following line to convert a dynamic range into a table:
It seems to work but it is possible that in future the range will contain blank cells. Will this cause a problem with the code or will it still capture and convert the entire range?
Thanks
I have written a macro with the following line to convert a dynamic range into a table:
VBA Code:
ThisWorkbook.Sheets("FilteredBats").ListObjects.Add(xlSrcRange, Range([A1].End(xlDown), [A1].End(xlToRight)), , xlYes).Name = "FilteredBatsTable"
It seems to work but it is possible that in future the range will contain blank cells. Will this cause a problem with the code or will it still capture and convert the entire range?
Thanks