View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.newusers
maw via OfficeKB.com maw via OfficeKB.com is offline
external usenet poster
 
Posts: 9
Default Adding a loop to conditional delete code

Hello all,

I have the following code:

Sub DelOver16()

If ActiveCell.Value = 16 Then ActiveCell.EntireRow.Delete

End Sub

What I need to do is have the code loop through cells F2:F10000 and delete
entire rows that have a value of =16.

How would I do that?

Many thanks in advance

Mark

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...l-new/200608/1