+ Reply to Thread
Results 1 to 2 of 2

Append, Excel data, to Word Table

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    ericbartha.com
    MS-Off Ver
    2016 Professional
    Posts
    126

    Append, Excel data, to Word Table

    Hello! - I am trying to move data from Excel to a template letter made with Word. When I manually do the process, after selecting the correct data in Excel, and right clicking on the table in word I get the below option, "Merge Table (M)". For the life of me, I cannot figure out how to do this with VBA though.

    I have tried the standard application.selection.pasteandformat, after selecting the table, of course, but it continuely puts the data ABOVE the table.

    Anyone have a suggestion? TIA!

    2016_12_06_14_32_37_.png

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

    Re: Append, Excel data, to Word Table

    If you used the macro recorder, you'd find that Word's 'Merge table' paste option is implemented via:
    Selection.PasteAppendTable
    which means your code would have to select the destination range; the method doesn't work with Range objects. The alternative is to write code that emulates the PasteAppendTable method with Range objects.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ 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. Append data, from Excel, to word table
    By ericbartha in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-07-2016, 11:29 AM
  2. append a word document from Excel VBA, which is already created
    By prabhucse in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-05-2016, 03:08 AM
  3. Using Excel VBA to append data to Ms.Access Table
    By jadhavabhay in forum Excel General
    Replies: 1
    Last Post: 12-14-2015, 11:01 PM
  4. append data into a table
    By JHL in forum Excel General
    Replies: 0
    Last Post: 01-09-2012, 10:49 AM
  5. Replies: 2
    Last Post: 03-21-2011, 06:42 AM
  6. How do I Append excel data to a Access database table in a excel macro?
    By Pete in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2005, 06:20 PM
  7. [SOLVED] How do I Append excel data to a Access database table in a excel macro?
    By Pete in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2005, 06:17 PM

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