Remove blank rows in table

前端 未结 7 1661
心在旅途
心在旅途 2020-12-18 23:57

I\'m trying to run a macro that selects blank cells in a table column and deletes the entire row.

The script below does everything except the deleting part, which p

7条回答
  •  渐次进展
    2020-12-19 00:25

    This One liner also would help

    on error resume next 'to continue macro if no empty row is found in table .Range("Table1").Columns(1).SpecialCells(xlCellTypeBlanks).EntireRow.Delete

    'this delete empty using 1st column as reference for checking blanks 'Use custom names for tables for easy manipulation in codes

提交回复
热议问题