
Please - Macro that deletes every second row
You might be better of tagging the rows to be deleted, sorting
then deleting. This is by far the quickest method for large
worksheets.
It is assumed that you want to delete the rows, and not just
the contenct in the even numbered rows.
Make a backup copy of your workbook.
In a blank column, enter
=If(MOD(ROW(),2)=0,0,1)
Copy down to the last (used) row in your sheet.
Copy, Paste Special -- Values the formula column
created above.
Sort in ascending order using this tagged column.
Delete all rows tagged with zero.
| Hello
|
| May I please ask for your kind help?
|
| I just spent a lot of time trying to write a VB macro that would start in
| the first row of an Excel spreadsheet and delete every second row [i.e.
| delete rows 2, 4, 6, etc], but for some reason it never works. Could you
| please help me with this?
|
| Thank You very much
|
| With Best Regards
|
|
| Tina
|
|