create excel files on excel data

m_vishal_c

Board Regular
Joined
Dec 7, 2016
Messages
209
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
hi I have 2 Excel files. 1 Source and 2nd Destination. There are some columns in Source file like
Sr NoNameAddressContact no
1Abcxxxx123
2Xyzxxxx345
3Mnoxxxx567

<tbody>
</tbody>
and in Destination there are below fields
A1 Sr No
A2 Name
A3 Address
A4 Contact NO
A5 and other stuff

<tbody>
</tbody>

<tbody>
</tbody>
I need vba code which create new excel file on each row and copy relevant information and save as Name data

if anyone can help then it will be great.
Heaps thanks in advance
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
the information in source and destination appears to be the same - show us a few lines of your desired output, please.
 
Upvote 0
the information in source and destination appears to be the same - show us a few lines of your desired output, please.

hi Thanks for replying. in source file, there are all user's information all together but in destination file, there must be one record (one user information). concept is Mail Merge, we use in word documents.

if you required more information then please let me know

thanks
 
Upvote 0
See we need exact details.
In source file is this columns A B C D
You said: "I need vba code which create new excel file"
And you want a new Sheet or a new workbook for each row.

You really want a new Workbook for each row of data??
 
Upvote 0
See we need exact details.
In source file is this columns A B C D
You said: "I need vba code which create new excel file"
And you want a new Sheet or a new workbook for each row.

You really want a new Workbook for each row of data??

Sorry for making confusing . you are right I need to create new workbook for each row of data and save as A2 Name

Thanks
 
Upvote 0
You still did not answer this question:
In source file is this columns A B C D

Are we only dealing with four columns
 
Last edited:
Upvote 0
I cannot see why you need a new workbook for each row, how about putting the whole row into one single cell, ie the cell could be "1 fred 33 hight street anytown 01563456789"
 
Upvote 0
I cannot see why you need a new workbook for each row, how about putting the whole row into one single cell, ie the cell could be "1 fred 33 hight street anytown 01563456789"

Sorry mate. but I need it. I do have several records and want to make separate Excel workbook on each row and in that new workbook I need to add those row details in each new workbook, separately . Hope you can understand me

thanks
 
Upvote 0
So you already have: Two workbooks. You said:
"hi I have 2 Excel files. 1 Source and 2nd Destination. There are some columns in Source file like"
We need the full exact names of these two Workbooks and what the sheet names are in each of these workbooks.

I believe your going to Email out these files you want to create.
Why can we not create a new sheet for each row and not a new workbook?

If you have 500 rows then you want 500 new Workbooks doing things the way you seem to want.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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