Delete rows

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,406
hi guys,

i am looking to modify some code. I have used macro recorder to get the following code

Code:
Cells.Find(What:="game stats", After:=ActiveCell, LookIn:=xlFormulas, _
        LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
        MatchCase:=False, SearchFormat:=False).Activate
    ActiveWindow.SmallScroll Down:=6

what i need is to delete the row containing "game stats" and the next 20 rows aswell

but this code runs more than once, so i need code to specify the rows

hope this makes sense

dont need the scroll down bit either

thanks
 
Last edited:

Some videos you may like

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Watch MrExcel Video

Forum statistics

Threads
1,108,727
Messages
5,524,478
Members
409,584
Latest member
RedHelp

This Week's Hot Topics

Top