+ Reply to Thread
Results 1 to 6 of 6

Copy and Paste cells from worksheet to word document

  1. #1
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Copy and Paste cells from worksheet to word document

    Hi all,
    I have a code I am trying to use to copy and paste a range of cells from Excel into a specific Word document. But I keep having issues with my path to document line here:
    Please Login or Register  to view this content.
    Here is the full code from Microsoft:
    Please Login or Register  to view this content.
    Any help would be awesome!
    Thanks,

  2. #2
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,647

    Re: Copy and Paste cells from worksheet to word document

    Try this...
    Please Login or Register  to view this content.
    OR
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  3. #3
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Re: Copy and Paste cells from worksheet to word document

    Thanks skt, still not working on the account of
    Please Login or Register  to view this content.
    not defined:

    Please Login or Register  to view this content.
    THX

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,647

    Re: Copy and Paste cells from worksheet to word document

    To make it work, you need to add the reference to the Microsoft Word 16.0 Object Library. To do so, open VB Editor --> Tools --> References --> Find the Microsoft Word 16.0 Object Library from the list of available references and check the checkbox next to it and click OK to finish.

  5. #5
    Forum Contributor
    Join Date
    08-23-2013
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 365
    Posts
    166

    Re: Copy and Paste cells from worksheet to word document

    Great, thanks skt.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,647

    Re: Copy and Paste cells from worksheet to word document

    You're welcome JP! Glad I could help.
    Thanks for the rep.

+ 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. Macro to copy/paste picture of table in Excel worksheet into a Word document
    By grbears in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-25-2017, 11:25 AM
  2. [SOLVED] Copy an embedded word document and paste into a folder
    By Scoobster_doo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-27-2017, 05:35 AM
  3. [SOLVED] VBA in Word, how to copy cells from a table into another word document that contentcontrol
    By reesjordan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2015, 04:39 AM
  4. Replies: 0
    Last Post: 09-04-2014, 03:32 AM
  5. Macro to copy and paste from another Word 2007 document.
    By Excelnoub in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2014, 09:06 PM
  6. Make a copy of a word document and paste it in a different folder with a name 'Test'
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2013, 01:09 PM
  7. Paste large excel worksheet into word document
    By amyinmd in forum Excel General
    Replies: 1
    Last Post: 02-23-2009, 10:29 AM

Tags for this Thread

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