VBA Adding copied rows after last used row

yttgle

New Member
Joined
Jan 22, 2016
Messages
6
Hi experts!

I have a worksheet which always has data in the A column (as part of a merged cell).

I am looking for a VBA program to help me select the last row and add a copyed set of 4 rows to add after the last row. The copyed selection will always be the same and origin from the same cells.

E.g.
- Select last used row (61 or Cell A61 as an example).
- Copy A1:F4 from different sheet
- Add copyed content to row 62:62 (A62:F65)

Next macro execution would add the same content to 66 etc.

Any way of solving this?

Br and thx!
 
It works perfectly! It didn't fancy the merged cell so I dismerged it and shifted the "Add above" content to B.

Works just as intended - thx a million mole!
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
merged cells are a nuisance, have a look at centre across selection from the same format menu
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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