+ Reply to Thread
Results 1 to 9 of 9

how to transfer data from Excel file to Word file as per requirement

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    how to transfer data from Excel file to Word file as per requirement

    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
    Attached Files Attached Files
    Last edited by roofi; 04-24-2014 at 02:21 AM.
    Abdul Rouf Roofi

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: how to transfer data from Excel file to Word file as per requirement

    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.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how to transfer data from Excel file to Word file as per requirement

    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.

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: how to transfer data from Excel file to Word file as per requirement

    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.

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,835

    Re: how to transfer data from Excel file to Word file as per requirement

    Since you want to know how to do this, try the following macro:
    Please Login or Register  to view this content.
    Note: You'll need to set a VBA reference to Word, via Tools|References.
    Last edited by macropod; 04-24-2014 at 06:14 PM.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  6. #6
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how to transfer data from Excel file to Word file as per requirement

    Dear Macropod,
    Can you please apply your code on my attached files to make me understand better.

    regards,
    roofi

  7. #7
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,835

    Re: how to transfer data from Excel file to Word file as per requirement

    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.

  8. #8
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Pakistan
    MS-Off Ver
    Excel 2013
    Posts
    167

    Re: how to transfer data from Excel file to Word file as per requirement

    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
    Attached Files Attached Files
    Last edited by roofi; 04-25-2014 at 12:30 AM.

  9. #9
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,835

    Re: how to transfer data from Excel file to Word file as per requirement

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 07-16-2012, 02:12 PM
  2. macro to take data from tables in word file to excel file
    By sandbach in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 12-16-2010, 05:02 PM
  3. Data Transfer from Excel File A to File B
    By Bruce in forum Excel General
    Replies: 0
    Last Post: 03-08-2006, 04:55 PM
  4. How can I transfer a Utf8 file from word to excel?
    By Shawn in forum Excel General
    Replies: 0
    Last Post: 05-20-2005, 10:06 AM
  5. Use ADO to transfer data from open excel file to closed excel file
    By JCanyoneer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2005, 03:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1