+ Reply to Thread
Results 1 to 6 of 6

Transfer data from excel form to word document

  1. #1
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Transfer data from excel form to word document

    Hi guys

    My project is built in Excel. I just want to transfer the policy number from excel form ro word document. The word document is saved in a folder and it depicts the information in some letter format. I want to transfer the policy number from excel form to ms word document page 1 and then print off the document . But no idea how to do that. I figured how to print off the document as follows but don't know how to transfer the policy number in that.

    Please Login or Register  to view this content.
    Any help would be much appreciated.

    Thanks
    Last edited by aman1234; 04-06-2011 at 04:20 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Transfer data from excel forum to word document

    The following code is from another project (and forum response) and is unmodified. It will, hopefully, give you some ideas:

    Please Login or Register  to view this content.

    The workbook and worksheet details are passed to the subroutine. It does some tweaking and formatting before copying the data to a newly created word document.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Transfer data from excel forum to word document

    Hi

    Thanks for your reply. Can anyone please modify the code accordingly?

    Thanks

  4. #4
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Transfer data from excel form to word document

    Hi guys

    I have written the following code to copy the textbox value from excel form to word document but it is not doing that but simply printing off the word document.
    Please Login or Register  to view this content.
    Any help would be much appreciated.

    Thanks

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Transfer data from excel form to word document

    I provided some code which does some processing in the Excel file, copies some data from the Excel file, creates a Word document, pastes the data into the Word document and does some formatting in the Word document.

    In post number 3, you said, "Can anyone please modify the code accordingly?" Apart from you, I suspect nobody knows what that means. You haven't uploaded the original workbook, or the Word document, or given any indication of what data is being copied from the Excel document nor where it needs to go in the Word document.

    Your modified code selects a shape, adds some text to it and prints the document. I'm seriously getting the impression that you didn't put much effort into taking the sample code provided and trying to make it meet your needs.

    Sorry, I'm out.

    Regards

  6. #6
    Forum Contributor
    Join Date
    02-20-2009
    Location
    bristol
    MS-Off Ver
    Excel 2003
    Posts
    882

    Re: Transfer data from excel form to word document

    Hi

    Thanks for your reply.As I have never done copy and paste from excel to word using vba so don't understand really what I have to do. But based upon the code you sent me over, I have written the following line of code which does copy and paste but it does paste the value on the top of the MS word document but I want it to paste the value at specific position in WOrd document.

    Please Login or Register  to view this content.
    I hope you can point me in the right direction.

    Thanks a lot for your help so far.
    Last edited by aman1234; 04-08-2011 at 03:12 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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