Hi, I just need to delete the header of a table and copy the body range to another worksheet. But not sure what is not right with the code below, it just not able to delete the header.
Following is my code.
Following is my code.
VBA Code:
Dim lo As ListObject
Workbooks("WIP_Macro.xlsm").Sheets("WIP").Activate
Set lo = Worksheets("WIP").ListObjects("WIPFlow")
lo.HeaderRowRange.Delete
lo.DataBodyRange.SpecialCells(xlCellTypeVisible).Select
Selection.Copy