Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have copied the code below to see if someone can help me with my problem.
I work great unfortunately it needs to check from cells d2 to d101. I have to hit run about 5 times for the whole range to be cleared. I sthere anyway to loop it until it is done or have it complete in one shot. Can someone tell me what I am doing wrong Sub CopyData() Dim rng As Range, cell As Range, col As Long Dim rw As Long, rng2 As Range col = 4 rw = 1 With Worksheets("SCHEDULE") Set rng = .Range(.Cells(col), .Cells(Rows.Count, col).End(xlUp)) End With For Each cell In rng If LCase(cell.Value) = "yes" Then cell.EntireRow.Delete End If Next End Sub Thanks in advance Greg |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Error trapped only while stepping through the code - Not triggered when run | Excel Discussion (Misc queries) | |||
Error trapped only while stepping through the code - Not triggered when run | Excel Discussion (Misc queries) | |||
Formula assistance required!!! | Excel Discussion (Misc queries) | |||
Help with Amending this Code Please | Excel Worksheet Functions | |||
Command Button VBA code | Excel Discussion (Misc queries) |