VBA replace too long to run

My code is taking too long to run on a large data set.
Can someone help improve by making it more efficient?
All it does is look for errors in either u,v,w or x and delete the row.
First it is 'trimming', because it was not recognizing errors at all, until I used the trim characters.
I appreciate any help!

Sub delerrors()
Application.ScreenUpdating = False
Reduced_Data.Activate


    Dim i As Long
    i = 2
    Do Until i > Cells(Cells.Rows.Count, "A").End(xlUp).Row
        If Replace(Cells(i, "u").Text, Chr(32), "") = "#REF!" Or _
           Replace(Cells(i, "u").Text, Chr(32), "") = "#N/A" Or _
           Replace(Cells(i, "v").Text, Chr(32), "") = "#REF!" Or _
           Replace(Cells(i, "v").Text, Chr(32), "") = "#N/A" Or _
           Replace(Cells(i, "w").Text, Chr(32), "") = "#REF!" Or _
           Replace(Cells(i, "w").Text, Chr(32), "") = "#N/A" Or _
           Replace(Cells(i, "x").Text, Chr(32), "") = "#REF!" Or _
           Replace(Cells(i, "x").Text, Chr(32), "") = "#N/A" Then
            Rows(i).Delete
        Else
            i = i + 1
        End If
    Loop
End Sub

Open in new window

Euro5Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
if you intend to do this by macro, you may try this and see if it performs better in overall.

Sub delerrors()
Application.ScreenUpdating = False
Reduced_Data.Activate
   
    Dim i As Long
    r = Cells(Cells.Rows.Count, "A").End(xlUp).Row
   
    For i = r To 2 Step -1
        If IsError(Cells(i, "u")) Or _
           IsError(Cells(i, "v")) Or _
           IsError(Cells(i, "w")) Or _
           IsError(Cells(i, "x")) Then
            Rows(i).Delete
        End If
    Next
End Sub

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Euro5Author Commented:
Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.