Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50151

If Row has certain word delete the row and also the two rows underneath.

$
0
0
I want a macro that will delete a row and the two rows underneath if the key row contains a certain word.

For example: If row 6 contains the word "section" then row 6,7 and 8 is deleted.
Or if the word section is on row 28, then also row 29 and row 30 is deleted.

So if it finds the key word it deletes the row it's on and the two rows underneath.

Looking at the first five columns on the spreadsheet will probably be enough.

Any help would be appreciated.

Viewing all articles
Browse latest Browse all 50151

Trending Articles