Need to do this...
Need to do this...
Loop through them
![]()
Dim ws As Worksheet For Each ws In Worksheets MsgBox ws.Name Next
A slightly different method, this does the whole sheet at once instead of one row at a time.
![]()
Sub DeleteRows() Dim ws As Worksheet, c As Range For Each ws In Worksheets With ws.UsedRange .AutoFilter , Field:=1, Criteria1:="<>art" .Offset(1).SpecialCells(xlCellTypeVisible).EntireRow.Delete End With ws.AutoFilterMode = False Next End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks