View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default how to delete a row

there is no reason to retrieve the row number and feed it to the rows
object. Just use what you find directly

cells(rows.count,1).End(xlup).EntireRow.Delete

go to the bottom of the spreadsheet. Select cell A65536. Hit the end
button, then the up arrow, then do Edit= delete and select Entire Row

That is pretty much it.

--
Regards,
Tom Ogilvy


"Newbie" wrote in message
...
Thanks works a treat

Is it possible for you to explain the syntax or tell me where I can find

out
about it

Thanks again
"Don Guillett" wrote in message
...
try

rows(cells(rows.count,"a").end(xlup).row).delete

--
Don Guillett
SalesAid Software

"Newbie" wrote in message
...
Hi,

I want to be able to - on the click of a button - find the last row in

a
list and delete the complete line.

How do I do this?

Thanks