R
Robert
Hello,
I need some help in writing a macro to look at a column of
values and when it gets to a cell with zero value I want
to delete all rows from there down. The data will be
sorted in decending order so all rows after the first row
that has a zero value will also have zero value.
For example, with the data below: I want to look at column
D (which would have various numbers of rows) and once
there is a value of zero as in row 5, I want all rows from
row 5 to the end deleted.
A B C D
1 5000111017 510100 1000.000
2 5000111017 510100 2030.000
3 5000111017 510100 1200.000
4 5000111017 510100 3020.000
5 5000111017 510100 0.000
6 5000111017 510100 0.000
7 5000111017 510100 0.000
8 5000111017 510100 0.000
9 5000111017 510100 0.000
Thank you in advance for helping me write this macro.
I need some help in writing a macro to look at a column of
values and when it gets to a cell with zero value I want
to delete all rows from there down. The data will be
sorted in decending order so all rows after the first row
that has a zero value will also have zero value.
For example, with the data below: I want to look at column
D (which would have various numbers of rows) and once
there is a value of zero as in row 5, I want all rows from
row 5 to the end deleted.
A B C D
1 5000111017 510100 1000.000
2 5000111017 510100 2030.000
3 5000111017 510100 1200.000
4 5000111017 510100 3020.000
5 5000111017 510100 0.000
6 5000111017 510100 0.000
7 5000111017 510100 0.000
8 5000111017 510100 0.000
9 5000111017 510100 0.000
Thank you in advance for helping me write this macro.