Hi,
I want to insert multiple rows into a worksheet using VBA.
I can insert a single row using:
Rows(r).Insert - where r is the row number
But, Rows(r:r1).Insert (where r1 is the last row number) doesn't work. I've tried using the Cells method for the Range but this also gives me problems. I can use a loop to insert single lines from 'r' to 'r1', but I suspect a single command would be more efficient (and neater!).
Any help would be greatly appreciated!
rsb
I want to insert multiple rows into a worksheet using VBA.
I can insert a single row using:
Rows(r).Insert - where r is the row number
But, Rows(r:r1).Insert (where r1 is the last row number) doesn't work. I've tried using the Cells method for the Range but this also gives me problems. I can use a loop to insert single lines from 'r' to 'r1', but I suspect a single command would be more efficient (and neater!).
Any help would be greatly appreciated!
rsb