it works but there might be a quicker way .....

shadow12345

Well-known Member
Joined
May 10, 2004
Messages
1,238
Hi,

I need to find a way to speed up the below macro that looks through a sheet and deletes all of the accounts listed. It works well it just that as the voloume has now increased to 27000 rows it takes forever to run, is there any way I can speed it up ?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

shadow12345

Well-known Member
Joined
May 10, 2004
Messages
1,238
Sub Delete_fft()


account = "239480"
account2 = "22425"
account3 = "58783"
For i = Range("b65536").End(xlUp).Row To 1 Step -1
If Range("b" & i).Value <> "" And Range("b" & i) = account Or Range("b" & i) = account2 Or Range("b" & i) = account3 Then
Range("b" & i).Rows(1).EntireRow.Delete
End If
Next i

End Sub


duhhhh, sorry[/code]
 
Upvote 0

Forum statistics

Threads
1,195,632
Messages
6,010,788
Members
441,569
Latest member
PeggyLee

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top