Copy and paste row x number of times

ClaireD

New Member
Joined
Nov 29, 2016
Messages
25
Hi all,

I need to create a macro that will copy and paste a row a certain number of times depending on the number a user types into a cell (let's call is L1 for argument's sake). This only needs to apply to one sheet in the excel (Match selection)

Any ideas,

Thanks,

Claire
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi,

where is it copying it from/where is it pasting to/does it need to meet any criteria?
 
Upvote 0
Hi,

where is it copying it from/where is it pasting to/does it need to meet any criteria?

Hi Barry,

It will need to copy row 13 on the same sheet. It would need to post in the row below. Row 13 would need to be included in the count so if the user types 12 then row 13 would need to be copied and pasted 11 times.

Most of the cells that are being copied and pasted are checkboxes however:
Column A =TEXT(B13, "dddd") (varies for each cell in the column)
Column B & C is a data validation list that is the same for each cell in the column
Column D is free text

Thanks,

Claire
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,044
Members
449,063
Latest member
ak94

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