Hi folks,
I've got a data table with 20-25 columns worth of data (sheet1), using an index number I use Index and Match to pull all of the relevant data from the table onto a formatted worksheet into the "fields" on the template (sheet2).
What I would like, is to be able to have a third worksheet where if I paste 500 index numbers (from sheet1) into A1:A500, and had a "print" button that pasted A1 into my template (sheet2) so that my index and match formulas pull their data for the number that exists in A1, then carries on for A2:A500.
The "print" action that happens would be the following, this is the part I have no clue how to do...
I would very much appreciate some help in this. If someone is feeling super patient I would love a breakdown on how it works, VBA to me is a confusing monster.
I've got a data table with 20-25 columns worth of data (sheet1), using an index number I use Index and Match to pull all of the relevant data from the table onto a formatted worksheet into the "fields" on the template (sheet2).
What I would like, is to be able to have a third worksheet where if I paste 500 index numbers (from sheet1) into A1:A500, and had a "print" button that pasted A1 into my template (sheet2) so that my index and match formulas pull their data for the number that exists in A1, then carries on for A2:A500.
The "print" action that happens would be the following, this is the part I have no clue how to do...
- Paste the value in A1 on sheet3 to sheet2 template on AA1
- Copy sheet2 to a new workbook, as values (excel has to calculate here first, to update my formulas).
- Save the new workbook, named after sheet3 A1. The file directory could be pulled from sheet3 AA2.
- Paste the value from sheet3 A2 into sheet2 AA1
- Copy sheet2 to a new workbook...
- Rinse and repeat until there is no more data, IE A1:A20 (sheet3) have index numbers, they get "printed to file", if there's no data below that then the program stops.
I would very much appreciate some help in this. If someone is feeling super patient I would love a breakdown on how it works, VBA to me is a confusing monster.