求助excel 如何自動設條件刪除多列 舉例說明 A B 10 5 9. 3 2. 17 5. 8 6. 12 如果欄B大於10 要整列刪除, 讓資料變成 A B 10 5 9. 3 5. 8 不會VBA , 謝謝
你是打算用VBA實作嗎?Dim lastRow As LongDim i As IntegerlastRow = Cells(Rows.Count, 1).End(xlUp).RowFor i = 1 To lastRowIf Cells(i, 2).Value > 10 ThenRows(i).EntireRow.Deletei = i - 1lastRow = lastRow - 1End IfNext i看來我是誤解了