none
Excel VBA ChartObject method Copy throws Exception RRS feed

  • Question

  • Hi!

    We have an VB.NET application that copies objects from an xlsx document to a word document. 
    For some of the chart objects exceptions is thrown when calling method Copy on the Excel.ChartObject. 

    For information, when we use method CopyPicture it seems that no exception is thrown and copying works.

    We use Office 2013.
    We would be most thankful if someone has a solution or an idea on how to solve this.

    Regards
    /Jonas
    Thursday, February 22, 2018 8:56 AM

All replies

  • You must use code to get this done

    Success
    Cor

    Thursday, February 22, 2018 9:14 AM
  • I dont understand what you mean with "use code"? 
    Can you explain that a little bit more thanks?
    Thursday, February 22, 2018 10:42 AM
  • Does it work if you try copying the same object manually?


    • Edited by Viorel_MVP Thursday, February 22, 2018 11:04 AM
    Thursday, February 22, 2018 11:04 AM
  • Yes, copying manually works.
    Thursday, February 22, 2018 11:45 AM
  • I dont understand what you mean with "use code"? 
    Can you explain that a little bit more thanks?

    You write here in a way if the programmers from Microsoft have done something wrong and you are the only one in the world who sees this. 

    Normally persons who ask here questions assume that they did themselves something wrong and show the code they have used. 


    Success
    Cor


    • Edited by Cor Ligthert Thursday, February 22, 2018 1:03 PM
    Thursday, February 22, 2018 1:02 PM