Excel VBA: Delete entire row if cell in column A is blank (Long Dataset)

前端 未结 1 704
慢半拍i
慢半拍i 2020-12-11 18:11

I am trying to delete all rows that have blank cells in column A in a long dataset (over 60 000 rows in excel)

I have a VBA code that works great when I have less th

相关标签:
1条回答
  • 2020-12-11 18:16

    You could try:

    Application.ScreenUpdating = False
    Columns("A:A").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
    Application.ScreenUpdating = True
    

    Application.ScreenUpdating toggles whether updates made in code are visible to the user, and trying Columns("A:A").SpecialCells(... might save time because it doesn't actually have to select the cells - untested.

    0 讨论(0)
提交回复
热议问题