返回列表 上一主題 發帖

[發問] VBA多活頁一次刪除空白列

arr = Array(∼∼工作表名∼∼)
On Error Resume Next
For Each sh In arr
  Sheets(sh).Range("A5:A50").SpecialCells(xlCellTypeBlanks).EntireRow.Delete
Next
On Error GoTo 0

TOP

        靜思自在 : 人要自愛,才能愛普天下的人。
返回列表 上一主題