kashif.special2005
Active Member
- Joined
- Oct 26, 2009
- Messages
- 443
Hi
I am using this code for deleting unnecessary rows in a sheet. And it is taking 5 minutes to delete the unnecessary rows, I want that when rows is deleting, a form show that rows is deleting please wait with progressing completing percentage.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
<o>Below code is for deleting rows.</o>
<o> </o>
For i = last_row To 2 Step -1<o></o>
<o> </o>
If Cells(i, 3).Value = "Combined" Or Cells(i, 3).Value = "Medium" Or _<o></o>
Cells(i, 1).Value = "Clnt Id" Or Cells(i, 1).Value = "Total Medium" Then<o></o>
<o> </o>
Rows(i).Delete<o></o>
i = i + 1<o></o>
End If<o></o>
Next i
<o> </o>
Thanks & Regards,
Kashif.<o></o>
I am using this code for deleting unnecessary rows in a sheet. And it is taking 5 minutes to delete the unnecessary rows, I want that when rows is deleting, a form show that rows is deleting please wait with progressing completing percentage.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
<o>Below code is for deleting rows.</o>
<o> </o>
For i = last_row To 2 Step -1<o></o>
<o> </o>
If Cells(i, 3).Value = "Combined" Or Cells(i, 3).Value = "Medium" Or _<o></o>
Cells(i, 1).Value = "Clnt Id" Or Cells(i, 1).Value = "Total Medium" Then<o></o>
<o> </o>
Rows(i).Delete<o></o>
i = i + 1<o></o>
End If<o></o>
Next i
<o> </o>
Thanks & Regards,
Kashif.<o></o>