+ Reply to Thread
Results 1 to 3 of 3

Paste Range of Data from Excel to Word

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

    Paste Range of Data from Excel to Word

    Hello!

    I am trying to append data, copied from MS Excel, to an already existing table within MS Word (table(1)). When I do this manually, I find exactly what I am looking for - "Merge Data (M)" under paste options, however, I cannot figure out how to reference this with VBA.

    2016_12_06_14_32_37_.png

    Everything I try with VBA, mostly PasteAndFormat, pastes the data ABOVE the selected table, instead of appending to it. Worth noting, the existing table is only the headers, as the DOC is a templete for 10,000+ PDFs being created.

    Anyone have an idea?

    TIA,

    Eric

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Paste Range of Data from Excel to Word

    You will likely have to set the insertion point to cell(2,1).
    Along the lines of:
    Please Login or Register  to view this content.
    Then attempt the paste.
    David
    (*) Reputation points appreciated.

  3. #3
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Paste Range of Data from Excel to Word

    Hi ericbartha

    When checking both your posts, this one, and
    http://www.excelforum.com/word-progr...ord-table.html

    I found in the web some coding and adpted in a way that could help you.
    It uses a Word document which is in the same directory as the Excel Workbook.
    The Doc must be closed.

    The Doc has one table, only the first line with titles.
    In the code you should define the number of rows and columns to be copied
    You can vary them to automatically obtain those numbers from the data table using lastrow and lastcolumn coding.

    Please Login or Register  to view this content.
    Barriers are there for those who don't want to dream

+ 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. Copy data range and paste to word doc
    By cmb80 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-30-2015, 08:35 AM
  2. Paste Excel Range into Word Doc at certain place
    By v.edwards.jr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-07-2014, 03:24 PM
  3. Paste excel range into word -> how to center the table in the page
    By d82k in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2013, 03:45 AM
  4. Macro to copy and paste an excel range into a word doc and then print to PDF??
    By Weswold in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2012, 11:34 AM
  5. Replies: 1
    Last Post: 10-01-2012, 11:11 PM
  6. Copy Range from Excel and Paste it in MS Word and then save it in a specified path
    By prasadcherry in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-10-2012, 02:29 PM
  7. Copy data range from excel to word as an image (i.e. paste special)
    By papasideris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2012, 09:54 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