VBA copy data using a customer list in the same template

cstuder

New Member
Joined
May 15, 2023
Messages
15
Office Version
  1. 2021
Platform
  1. Windows
I would like to copy a range of data to different customers/contract #s (to the bottom of a template) and would love to have a VBA code to automate this process.

Worksheet name = Template
Template (tab) range of data = Column A-AK

The process would be done twice on two different tabs (Product Template and Group Template) for the same list of customers.

The data (which already exists on the template) needs copied for each Contract#/Cust# listed in the "Info" tab.

The "Info" tab contains the Contract # & Cust #
The Contract # would be inserted into the Product Template in Column A.
The corresponding Cust # would be inserted into the Product Template in Column C.

Using the same list (Contract #/Cust #) copy the data in the Group Template using the same process as above.

The range of data and the number of customers will vary, but the Template headers (columns A-AK) remain constant. Sometimes I'll have info as product or groups only, so if the template is blank, the VBA would skip those tabs.

I hope this makes sense. Any help is appreciated!!!!
 

Attachments

  • Info.JPG
    Info.JPG
    69 KB · Views: 11
  • Product Template.JPG
    Product Template.JPG
    119.9 KB · Views: 11
  • Group Template.JPG
    Group Template.JPG
    71.7 KB · Views: 12

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,994
Messages
6,122,633
Members
449,092
Latest member
bsb1122

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