To be more specific, each row has a 4 digit product type in column E. There
are 3 product types I'd like excluded: 1034,1035 & 1037.
How can I search the data, and eliminate the rows with these 3 product
types?
Thank you!
Go Eagles!
Sub DeleteRows()
Dim FoundCell As Range
Set FoundCell = Range("E:E").find("1034")
Do Until FoundCell Is Nothing
FoundCell.EntireRow.Delete
Set FoundCell = Range("E:E").FindNext
Loop
End Sub
Or for all numbers
Sub DeleteRows_2()
Columns(5).Replace What:="1034", Replacement:=""
Columns(5).Replace What:="1035", Replacement:=""
Columns(5).Replace What:="1037", Replacement:=""
Columns(5).Cells.SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
--
Regards Ron de Bruin
( Win XP SP-1 XL2002 SP-2)
www.rondebruin.nl
"Eagles!" <G...@noreply.com> schreef in bericht
news:3e1dcda6$0$21637$4c41...@reader0.ash.ops.us.uu.net...
--
Paul, ** remove news from my email address to reply by email **
Always remember to backup your date before trying something new
Using Excel '97
"Eagles!" <G...@noreply.com> wrote in message
news:3e1dcda6$0$21637$4c41...@reader0.ash.ops.us.uu.net...
"Ron de Bruin" <ronde...@kabelfoon.nl> wrote in message
news:eJ965gBuCHA.2308@TK2MSFTNGP09...
When I have tried a macro like this it seems to take forever to get through
all the rows.
I even turn ScreenUpdating off.
Can you make any suggestions to speed this up (Excel97 SR2, Windows NT)
steve
"Paul" <newspb...@uga.edu> wrote in message
news:#ebfUnBuCHA.2492@TK2MSFTNGP11...
"Sbell" <sb...@sunclipse.com> wrote in message
news:erZi15BuCHA.1644@TK2MSFTNGP09...
You're right... Very Fast, Very Slick...
thanks..
steve
"Paul" <new...@surfbest.net> wrote in message
news:#nt3XsDuCHA.1640@TK2MSFTNGP09...