VBA If Macro, Copying one row of text to different spreadsheet per row of Data

Caldorn

New Member
Joined
Apr 15, 2013
Messages
2
<o:p>The title of the thread pretty much explains what i'm looking to do.
But here is a little more details.
Basically what I'm starting with is an Excell spreadsheet First row contains the headers and then the following rows contain the data can be where from 1 to 80 rows of data per report.

What I need this Macro to do is copy the first row of Data and then paste it in another pre-saved report and then save that report as a different name based on data in that row and then check if row two has data do the same thing and so on until no data is found.
</o:p>
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
What I need this Macro to do is copy the first row of Data and then paste it in another pre-saved excel document and then save that doc as a different name based on data in that row and then check if row two has data do the same thing and so on until no data is found.

2uj7cqx.png

Example of spreadsheet above.
Data has been hidden from this view but the report will go from Colum A to T

2d817ad.jpg


This Above is the macro that works but will only do one line I need it to run a total of 80 lines if Data in Colum B

Hoping these pics work, It may help in explaining what i'm looking to do.
 
Upvote 0

Forum statistics

Threads
1,207,090
Messages
6,076,520
Members
446,211
Latest member
b306750

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