+ Reply to Thread
Results 1 to 2 of 2

Merge Excel data into specific form areas in a Word Doc

  1. #1
    Valued Forum Contributor
    Join Date
    04-11-2006
    MS-Off Ver
    2007
    Posts
    438

    Red face Merge Excel data into a form in a Word Doc...pleeze help...this one's a duezzy!

    Alright, if anyone can figure this one out, you'll save me a bundle of time and teadious typing !

    If in Excel 2003, I currently have, let's say the following on row "D"

    d1 name
    d2 address
    d3 city
    d4 state
    d5 zip
    d6 account number

    And in Word 2003, I have a protected form with 6 text form fields which use the tab button to move from one text form field to the next.

    So let's say the following is true in my protected form in Word...

    Text Form Field 1 - name
    Text Form Field 2 - address
    Text Form Field 3 - city
    Text Form Field 4 - state
    Text Form Field 5 - zip
    Text Form Field 6 - account number

    How do I export the Excel data from row "D" to each of the respective Text form fields in the Form I have from Word?

    Thanks so much for anyone's help on this.
    Last edited by duugg; 04-20-2006 at 01:38 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    I can see a couple of ways of doing this.

    The first involves the creation of a Word object and driving the manipulations from Excel

    Have a look at

    Controlling One Microsoft Office Application from Another

    in Excel VBA help.

    The other way is to use the Application.SendKeys method to send keystrokes to word.
    Martin

+ 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