Next i
End Sub
------------------------------------------------------------
目前我參考網路資料改寫office2003為
------------------------------------
Sub delete()
For i = 2 To 33
Dim r As Range, Rng As Range
Sheets(i).Select
With Sheets(i).UsedRange
.Columns("B:AG").AdvancedFilter Action:=xlFilterInPlace, Unique:=True
Dim g%
Application.ScreenUpdating = False
For g = ActiveSheet.UsedRange.Rows.Count + ActiveSheet.UsedRange.Row - 1 To ActiveSheet.UsedRange.Row Step -1
If Rows(g).Hidden = True Then
Rows(g).EntireRow.delete
End If
Next
Application.ScreenUpdating = True
End With
Next i
End Sub
------------------------------------------------------------作者: faye59 時間: 2018-9-5 22:25