Copy and Paste Loop until end of range

JamesHampton

New Member
Joined
May 19, 2016
Messages
2
Hi all,

I need help! I have two columns in sheet 2, "Cust Name" in "A" and "Account Number" in "B". I need to somehow get a macro that will copy both cells of this data and paste them into "B1" and "B2" on sheet1, convert the relevant information to PDF (I already have this part of code) and then perform the same action on the next customer and account number, I need to do this to the end of the range in sheet2. Anybody got any ideas? Any help would get my manager off ma back :)
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Does it have to be done with a macro? Why don't you just copy the entire range, and then Transpose/Paste it in the new sheet?
 
Upvote 0
I have 400 different customers and need to convert the details to PDF but I can only have one customer per page so not able to just paste them all over
 
Upvote 0

Forum statistics

Threads
1,215,636
Messages
6,125,951
Members
449,276
Latest member
surendra75

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