Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have the following VBA that deletes all empty rows within a range of data. The only problem I am facing is that the loop keeps running, hence it looks like it does not stop after row 4500. Can someone tell me which command I have to define to stop the Looping after row 4500? Worksheets("Compiled").Activate Range("A1:A4500").Select Dim rng As Range Set rng = Columns(1).Find("") If Not rng Is Nothing Then Do rng.EntireRow.Delete Set rng = Columns(1).Find("") Loop While Not rng Is Nothing End If Thanks a lot for your help! Rgds, Robert |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Recursive Loop -- How to Stop It? | Excel Programming | |||
Stop the loop when found. | Excel Programming | |||
Hot key to stop a LOOP | Excel Programming | |||
how to stop a loop | Excel Programming | |||
HELP!!!! Can't stop a loop (NOT an infinite loop) | Excel Programming |