excel - Selecting specific lines in spreadsheet -


i have massive spreadsheet need select rows of data out of , rest can deleted. of rows want select begin rc followed 6 numbers. numbers can different rc125468 , rc212548. there blank rows in spreadsheet, don't know if make difference. cover of rows in spreadsheet have cycle through 30000.

here code (it's bad, it's things found on google thought work):

sub macro1()     dim x integer     dim rng range     set rng = range("a2:a35000")     set x = x + 1     until x = 30000         if range(x, 1).value <> ("rc??????")             delete.row (x)        end if     loop end sub 

i've tried couple of different things, keep running different errors , can't put run let alone select info need. appreciated.

try this:

dim long = 30000 1 step -1     if not activesheet.range("a" & i) "*rc*"         activesheet.range("a" & i).entirerow.delete     end if next 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -