thamestowers
New Member
- Joined
- Jun 8, 2014
- Messages
- 23
I have been trying to complete the macro to add a new row below an specific one, it is a very simple code, but so far I haven't found the condition to keep on adding new ones below the newly added row.
For example:
I am copying the data from the row 29 and pasting it on the 30, (as it has formulas, I do a second copy of the formulas and paste it)
Now, is it possible to make my next insert to be on the row 31, then the next on 32 and so on...?
'inserting new row
Range("A29:AB29").EntireRow.Offset(1, 0).Insert
'getting the formulas from the previous row
Range("X29:AB29").Copy Destination:=Range("X30:AB30")
and here is where I have been stuck to make it consecutive...
thank you in advance for your advice and assistance!
For example:
I am copying the data from the row 29 and pasting it on the 30, (as it has formulas, I do a second copy of the formulas and paste it)
Now, is it possible to make my next insert to be on the row 31, then the next on 32 and so on...?
'inserting new row
Range("A29:AB29").EntireRow.Offset(1, 0).Insert
'getting the formulas from the previous row
Range("X29:AB29").Copy Destination:=Range("X30:AB30")
and here is where I have been stuck to make it consecutive...
thank you in advance for your advice and assistance!