回復 7#stillfish00
我有試過很多方法 因不了解才在發問 我有試過例如
Sub Test()
Dim i As Long
With ActiveSheet
For i = .Cells(.Rows.Count, "B2:B").End(xlUp).Row To 1 Step -1
If StrComp(.Cells(i, "B2:B").Text, Format(Date, "yyyy/mm/dd"), vbTextCompare) <> 0 Then .Rows(i).Delete Shift:=xlUp
Next
End With
End Sub
不懂欄位從B2開始跟日期表示
還請大大指導
謝謝作者: stillfish00 時間: 2015-3-18 11:28
For i = .Cells(.Rows.Count, "B").End(xlUp).Row To 2 Step -1
If StrComp(.Cells(i, "B").Text, Format(Date, "yyyy/mm/dd"), vbTextCompare) <> 0 Then .Rows(i).Delete Shift:=xlUp
Next作者: jerrystock 時間: 2015-3-19 03:04