deleting 2 rows

  • Thread starter Thread starter Tomek
  • Start date Start date
T

Tomek

Hello,

I wonder how to delete 2 rows if there is zero value in the first row?
I know how to delete one row with zero value but I do not know how to
delete to rows.
There are many rows with values. If there is a row with zero value I want
to delete the row with zero value and next row with whatever value.
I have several thousands rows.

example
A
1
5
0 DELETE
2 DELETE
2
2
0 DELETE
5 DELETE

Thank you very much in advance for help

Tomek
 
Dnia Sat, 29 Jan 2005 12:18:50 -0500, Tom Ogilvy napisa³(a):
Use the resize method

activecell.Resize(2).EntireRow.delete


Thank you very much , it really works!

Tomek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top