New to Excell VBA - need to select a row
I need to write a macro that deletes some rows in a spreadsheet, then advances a certain number of rows, and deletes a different number of rows, advance an arbitrary number of rows, delete, etc. I have no idea how to use a variable to increment the selected cells each time.
I need to do something like:
Do this m times: {
Delete rows "r1 through r2"
Advance n1 rows
Delete delete rows "r3 through r4"
Advance n2 rows}
Next
Sorry for this clueless post...
|