Dear experts,
Hope everybody will be in the best of your health. i have a question here.
i have data in excel format and i want to transfer it to word format. please concentrate on CNIC.
files attached.
thanks
roofi
Dear experts,
Hope everybody will be in the best of your health. i have a question here.
i have data in excel format and i want to transfer it to word format. please concentrate on CNIC.
files attached.
thanks
roofi
Last edited by roofi; 04-24-2014 at 02:21 AM.
Abdul Rouf Roofi
Hi,
Please check the attached file, if this what you were looking for.
Regards,
Chandra
Please click on ‘ * Add Reputation’ button on the left side bottom of my post if I was helpful in resolving the issue.
Dear Chandra,
thank you for reply.
yes you got my question. now please give me the working how to do this. if this is copy paste or manual entry it is of no use. i need automatic formulation for the same please.
regards,
Roofi
Last edited by roofi; 04-24-2014 at 04:16 AM.
Hi Roofi,
Before copying the contents into MS-Word, please split the respective column into serveral columns using the following option in excel:
Data -> Text to Columns - > Chose "Fixed Width" -> Next -> in Data Overview tab select one divider for each character - > Finish
Regards,
Chandra
Please click on ‘ * Add Reputation’ button on the left side bottom of my post if I was helpful in resolving the issue.
Since you want to know how to do this, try the following macro:
Note: You'll need to set a VBA reference to Word, via Tools|References.![]()
Please Login or Register to view this content.
Last edited by macropod; 04-24-2014 at 06:14 PM.
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Dear Macropod,
Can you please apply your code on my attached files to make me understand better.
regards,
roofi
All you need to do is to:
• add the macro to your Excel workbook;
• set the Word library reference as described; and
• change the path in:
"C:\My Documents\Form D.docx"
to point to wherever your 'Form D' document is located.
From then on it's just a matter of running the macro.
Dear
only the one thing confusing. please make me understand the term "word library"
actually i have "winword.application". when i apply the same it returns messege
"compile error user-defined type not defined"
can you explain plz? plz check the way i applied your code in attached excel sheet.
thanks
Last edited by roofi; 04-25-2014 at 12:30 AM.
Please read the note at the bottom of post # 5: http://www.excelforum.com/excel-prog...ml#post3672336. That tells you what to do and how to do it.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks