Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Do Loop
Hi
I have a Do Loop which performs the task required however it does leave one row left which it should also delete. In one column I have a K and then numbers or Ktba. The Do Loop is to go down the column to find and delete all the rows with Ktba in them and only stop the loop when the column is empty. The loop does work except it leaves a Ktba behind and I dont understand why. IF you can see what is wrong with my code and advise me I would really appreciate it. count = 4 Do If Application.Range("J" & count) = "Ktba" Then Application.Range("J" & count).Select Selection.EntireRow.Delete End If count = count + 1 Loop Until Application.Range("J" & count).value = "" thanks Noemi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help with Do...Loop | Excel Discussion (Misc queries) | |||
hysteresis loop | Charts and Charting in Excel | |||
Do Loop | Excel Worksheet Functions | |||
VB for excel, how do I loop through code | Excel Discussion (Misc queries) | |||
loop trough e-mail address list to send task lists with outlook | Excel Discussion (Misc queries) |