Delete entire row contains SUM words for each sheet contains 8000 rows

Maklil

Board Regular
Joined
Jun 23, 2022
Messages
164
Office Version
  1. 2019
Platform
  1. Windows
Hi
I search for macro to deal with big data(more than 8000 rows for each sheet) increasing With the passage of time. should search for SUM words in column A for each sheet ,then just delete multiple entires rows contain SUM words at once for each sheet .
there are some sheets doesn't contain SUM words so should ignore it.
thanks
 
Well Done,Fuji!(y)
much appreciated for your help , also Mumps,Joe !:love::love::love::love:
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I've found something it will delete any row contains any word in column A . should just delete SUM words !
 
Upvote 0
Then change the formula to
Code:
            .Formula = "=if(b1=""sum"",""z"","""")&row()"
 
Upvote 0
Can not replicate such issue here.

Do a step debug and find out what it is doing wrong.
 
Upvote 0
this is my bad!
that's because of this
VBA Code:
With ws.[a1].CurrentRegion
            .Offset(1).Resize(.Rows.Count - 1).Columns(1) = Evaluate("row(1:" & .Rows.Count & ")")
        End With
ok everything is ok.:)
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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
Back
Top