Hi,
I am trying to delete all rows below a specific point in my data. I would like a macro to find the last value in column I that is greater than 0 and then delete all rows that follow that value. Can it be done?
Thanks
Z
Hi,
I am trying to delete all rows below a specific point in my data. I would like a macro to find the last value in column I that is greater than 0 and then delete all rows that follow that value. Can it be done?
Thanks
Z
May be:
Please Login or Register to view this content.
For what its worth it would be more efficient to start at the last row and go up until you find the first value > 0.
Edit: You can also do this without a loop
Please Login or Register to view this content.
Last edited by stnkynts; 08-04-2016 at 10:31 AM.
If you are happy with my response please click the * in the lower left of my post.
Thanks both, I have moved on a little since this post and tried to combine two macros so that the copy and paste is done first then delete out anything below the last value that is greater than 0 in column I. Any idea how to combine the two?
Please Login or Register to view this content.
@stnkynts, Brilliant idea.
@zak.horrocks, you could use this.
Please Login or Register to view this content.
You can append this code below your code
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks