Sub ex()
For r = Cells(Rows.Count, 1).End(xlUp).Row To 1 Step -1
If 0 = Application.CountA(Range(Cells(r, "A"), Cells(r, "F"))) Then '判斷A~F欄沒有資料才刪除此列
Rows(r).EntireRow.Delete
End If
Next
End Sub作者: yangjie 時間: 2016-5-6 11:27
Sub ex()
a = Application.WorksheetFunction.CountA([A:A])
b = Application.CountA([A:A])
c = WorksheetFunction.CountA([A:A])
Debug.Print a, b, c
End Sub作者: mave 時間: 2016-5-17 16:24