How can I insert rows???

pedroc74

New Member
Joined
Aug 23, 2011
Messages
12
I have a sheet with only 20 rows with range A1:A20 to insert data, that gives me one printting page.
My idea is every time I have 20 ranges with data the macro automatically copy a row 10 rows above (hidden, with no data, only with my formulas. In between I have the colums results) and insert 20 new rows abobe de other 20 first rows.
I already found how to copy and insert rows.
1-My problem is run the macro automatically
2-Continued inserting 20 rows after I have a printting area filled knowing that every time I insert 20 rows the row to be copy is no longer de row 30 ( 10 above de first 20) and the row to copy the hidden row is no longer de row 21.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,224,521
Messages
6,179,285
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top