+ Reply to Thread
Results 1 to 1 of 1

Runtime error 5345 while pasting chart from Excel into Word

  1. #1
    Registered User
    Join Date
    09-06-2015
    Location
    Ruhrgebiet, Germany
    MS-Off Ver
    Office 2011 for Mac
    Posts
    1

    Runtime error 5345 while pasting chart from Excel into Word

    Hello there,

    I'm new to this forum and hope I can find some support here, but to what I've read so far I'm very optimistic

    I developed some macros in Excel to copy some charts from an Excel workbook to a self-created Word template. The Word template has some bookmarks at whose positions I want the charts to be copied. It is important that the charts in Word stay linked to the original ones in Excel. In office 2007 on my Windows machine this works fine.

    However this code doesn't work on my Mac with Office 2011. I get a runtime error 5345 "Application-defined or operation-defined error." and have no idea what is the root of this error. The error occurs in the last row of ChartToWord where the chart shall finally be pasted into the word document. I also tried to record the manual copy and paste procedure on the mac, but I got the same results as in Office 2007. I guess it is caused by the connection of WoObj and PasteSpecial but I have no idea how to solve it.

    I use the following macro:

    Please Login or Register  to view this content.
    ------------------------------------------------------------

    EDIT: OK I found out, that it is caused by the "Link:=True" attribute. If it is set to "False", then it'll work. I really don't know why, because when I do it manually I have no problems with the links. Another problem is then, that the charts will be resized while pasting (mostly smaller), so they doesn't fit into their predefined space in the template anymore. Any suggestions for that?

    Can anybody please kindly give me an advice? Thank you very much!

    Best regards,
    Daniel
    Last edited by DanielZ123; 09-08-2015 at 12:05 PM.

+ 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. Runtime Error 1004 in older Excel Versions when updating Chart Series
    By brokenbiscuits in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2015, 08:01 AM
  2. Copy and Pasting Issue (Runtime error '1004')
    By kinseld5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2013, 08:26 AM
  3. Runtime error 1004 when copying and pasting a filtered collumn excel 2010
    By Shedacq in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-14-2012, 06:35 AM
  4. Opening Word Template(.dot) with Excel VBA - RUNTIME ERROR
    By wildjester in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-04-2011, 04:17 PM
  5. Replies: 1
    Last Post: 02-19-2006, 11:40 AM
  6. [SOLVED] excel chart export error runtime 1004
    By Mau in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-17-2005, 07:05 AM
  7. [SOLVED] excel chart export error runtime 1004
    By Mau in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-04-2005, 05:05 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