+ Reply to Thread
Results 1 to 3 of 3

Copy data & chart from Excel to Word

  1. #1
    Registered User
    Join Date
    08-14-2018
    Location
    Au
    MS-Off Ver
    2016
    Posts
    3

    Copy data & chart from Excel to Word

    I have a Word document that I already run several macros on. I now want to add an additional macro that will do the following (I'm not sure if this can all be done through a Word macro or if after opening the spreadsheet I need to run another macro through Excel.)

    • From the open Word document (named "workingquote.docx",) open a spreadsheet with the name "WorkingSheet.xlsm"
    • Prompt user for data to input in several cells (I figured out the code to do this part in an excel macro but not sure if it can be done through the word macro?) This data updates a graph
    • Copy a range of cells in excel document to the clipboard
    • Switch back to the word document named "workingquote.docx" & go to a bookmark named "ROITable" and paste the data from the clipboard
    • Switch back to Excel doc "WorkingSheet.xlsm", copy a graph named "SolarValue"
    • Switch back to the word document named "workingquote.docx" & go to a bookmark named "ROIGraph" & paste into the Word document named "workingquote.docx".
    • Close the excel document (don't need to save it but do need to retain the data in the word document)


    (Cross posted to: mrexcel & msofficeforums but I can't post links.)

  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: Copy data & chart from Excel to Word

    Cross posted to https://www.mrexcel.com/forum/genera...xcel-word.html & http://www.msofficeforums.com/word-v...ata-chart.html
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    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: Copy data & chart from Excel to Word

    There are many examples of code on all three forums for automating Word from Excel and vice-versa. I suggest you do a search for some code you can adapt and, if you run into difficulties with the implementation, post back with the specifics.

+ 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 chart from excel to word
    By wongth7 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-09-2015, 06:29 AM
  2. copy and paste excel chart to word
    By treader in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2015, 10:56 AM
  3. Copy Chart from Excel to Word
    By Elena Barkovskaya in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-15-2013, 04:46 AM
  4. How to copy an excel pivot chart into word?
    By gilbeiry in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-29-2013, 11:23 AM
  5. Copy Chart from Excel to Word using VBA
    By Jonathan Allen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2006, 04:10 PM
  6. [SOLVED] Copy Chart from Excel to Word
    By Jonathan Allen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2006, 09:55 AM
  7. [SOLVED] How do I copy a table from Excel to Word or a chart to Ppt in a ma
    By Linda Vincent in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-30-2005, 02:10 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