+ Reply to Thread
Results 1 to 8 of 8

Copy range from Excel Spreadsheet and paste into saved Word Document as picture

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Copy range from Excel Spreadsheet and paste into saved Word Document as picture

    Hello,

    My current code below, copies data in a specific cell to a bookmark in a saved Word Document. Is there a way I could edit my code to past a Range (i.e. B2:G23) to the bookmark in the word document as a picture?

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

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Copy range from Excel Spreadsheet and paste into saved Word Document as picture

    Hi there,

    See if the following code does what you need:

    Please Login or Register  to view this content.
    The highlighted values may be edited to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Copy range from Excel Spreadsheet and paste into saved Word Document as picture

    Hi Greg,

    Many thanks for that - it works perfectly. Is there a way I could incorporate more ranges into the code, to paste other ranges of data as pictures to specific bookmarks in the document?

  4. #4
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Copy range from Excel Spreadsheet and paste into saved Word Document as picture

    Hi Greg,

    Many thanks for that - it works perfectly. Is there a way I could incorporate more ranges into the code, to paste other ranges of data as pictures to specific bookmarks in the document?

  5. #5
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Copy range from Excel Spreadsheet and paste into saved Word Document as picture

    Hi again,

    Thanks for your feedback. I think the following (untested) code should do what you need:

    Please Login or Register  to view this content.
    As before, the highlighted values may be changed to suit your requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  6. #6
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Copy range from Excel Spreadsheet and paste into saved Word Document as picture

    Thanks Greg, that is excellent. Much appreciated.

    One final thought after testing, is there a way the code could be amended to copy a single cell, or a range to a bookmark in the same word document but where it is pasted as text, as opposed to picture.

    So the code would paste some ranges as pictures and some as text?

  7. #7
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Copy range from Excel Spreadsheet and paste into saved Word Document as picture

    Hi again,

    Many thanks for your feedback and also for the Reputation increase - much appreciated!

    I think that something along the following lines should do what you need:

    Please Login or Register  to view this content.

    If you are likely to be dealing with a large number of ranges, it would probably be much easier to enter all of the Range / Bookmark Name / Copy Method information on a worksheet, and to pass all of that information to the above routine in the form of an array.

    Hope this helps - as always, please let me know how you get on.

    Best regards,

    Greg M

  8. #8
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Re: Copy range from Excel Spreadsheet and paste into saved Word Document as picture

    Hi Greg - one final thought. Is there a way to define the size of each picture?

+ 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. [SOLVED] Copy Excel range a number of sheets as pictures to MS Word, each picture on new Word page.
    By IGTsmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2018, 09:23 AM
  2. 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
  3. Copy comment picture to word document
    By nielsskovjoergensen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2017, 07:42 AM
  4. Copy and paste entire word document into excel spreadsheet
    By shanqo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2015, 10:22 AM
  5. [SOLVED] Copy excel range and paste special picture (metafile) into existing word dot VBA
    By Markcuss in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2012, 08:21 PM
  6. Copy data from Excel and paste it in a table in word document
    By shekhar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-04-2012, 05:28 AM
  7. Replies: 1
    Last Post: 10-01-2012, 11:11 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