+ Reply to Thread
Results 1 to 3 of 3

VBA auto copy-paste from Excel to Word works but no source formatting!

  1. #1
    Registered User
    Join Date
    07-20-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    2

    VBA auto copy-paste from Excel to Word works but no source formatting!

    I found a code on the Internet and I've adapted to my own use to automate copy-paste. Works great except that when I paste the Excel chart to my word report, the colors get changed to destination theme. I need to keep source formatting and as the report is final, I can't change the color scheme either.

    For some reason Selection.PasteSpecial (wdChart) does not work, it's used as a simple paste. I've got hundreds of reports to paste two dozens of graphs to, I would not want to do if manually!

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,658

    Re: VBA auto copy-paste from Excel to Word works but no source formatting!

    An alternative method is to save the chart as an image file and then insert that image in the Word doc.

    Exporting a Chart to a Word Document
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    07-20-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    2

    Re: VBA auto copy-paste from Excel to Word works but no source formatting!

    Quote Originally Posted by AlphaFrog View Post
    An alternative method is to save the chart as an image file and then insert that image in the Word doc.

    Exporting a Chart to a Word Document
    That works, however the image formatting and quality is not suitable for printing of the Word reports...

+ 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 and paste formatting of table in Word
    By Aaron092 in forum Word Formatting & General
    Replies: 1
    Last Post: 02-02-2015, 07:41 PM
  2. [SOLVED] Copy and Paste values and source formatting
    By danfullwood in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2013, 04:51 AM
  3. [SOLVED] Pasting Excel range to Word doc Keeping source formatting, using VBA
    By staggers47 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-14-2013, 10:46 AM
  4. Replies: 1
    Last Post: 01-16-2013, 05:36 AM
  5. Replies: 1
    Last Post: 10-01-2012, 11:11 PM
  6. How to disable Paste Special->Keep Source Formatting - Excel 2010
    By tromba in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-11-2012, 03:47 AM
  7. Replies: 0
    Last Post: 07-29-2011, 07:19 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