+ Reply to Thread
Results 1 to 12 of 12

Copying Excel chart to PowerPoint

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    Plano, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Copying Excel chart to PowerPoint

    I'm using the following code to copy an Excel chart to a PowerPoint slide. It works fine when I copy the chart to slide 1. However, I cannot figure out how to copy the chart to any slide other than slide 1. Any help would be greatly appreciated.

    Please Login or Register  to view this content.
    Last edited by vlady; 10-11-2012 at 09:35 PM.

  2. #2
    Registered User
    Join Date
    11-25-2008
    Location
    Poland
    MS-Off Ver
    MSO 2K3, 2K10
    Posts
    84

    Re: Copying Excel chart to PowerPoint

    Try this macro:
    Please Login or Register  to view this content.
    Artik

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    Plano, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copying Excel chart to PowerPoint

    vlady - Thanks for pointing out the rules. As you noticed, I'm a newcomer to this forum. I'll do better in the future.

  4. #4
    Registered User
    Join Date
    10-09-2012
    Location
    Plano, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copying Excel chart to PowerPoint

    Artik_PL - Thanks for your help. I'm still getting the following error on the "activeSlide.Shapes.PasteSpecial(link:=msoFalse).Select" statement whenever I enter a number other than 1:

    Run-time error '-2147188160 (80048240)' : ShapeRange (unknown member) : Invalid request. To select a shape, its view must be active.

    I'm using PowerPoint 2010 and Excel 2010. Does the code need to be different for these versions?

  5. #5
    Registered User
    Join Date
    11-25-2008
    Location
    Poland
    MS-Off Ver
    MSO 2K3, 2K10
    Posts
    84

    Re: Copying Excel chart to PowerPoint

    Can you show an example of both files in the attachment?

    Artik

  6. #6
    Registered User
    Join Date
    10-09-2012
    Location
    Plano, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copying Excel chart to PowerPoint

    Artik_PL - Attached is the xlsm file. The forum uploader won't allow me to upload the Powerpoint file, but it's a very basic Powerpoint 2010 file with 3 slides. Each slide is blank except for a title.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    11-25-2008
    Location
    Poland
    MS-Off Ver
    MSO 2K3, 2K10
    Posts
    84

    Re: Copying Excel chart to PowerPoint

    Powerpoint file attach in zip file.

    Artik

  8. #8
    Registered User
    Join Date
    10-09-2012
    Location
    Plano, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copying Excel chart to PowerPoint

    Thanks for recommending the zip file.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    11-25-2008
    Location
    Poland
    MS-Off Ver
    MSO 2K3, 2K10
    Posts
    84

    Re: Copying Excel chart to PowerPoint

    Full code in standard module:
    Please Login or Register  to view this content.
    Artik

  10. #10
    Registered User
    Join Date
    10-09-2012
    Location
    Plano, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copying Excel chart to PowerPoint

    Artik_PL - Thank you for solving this problem for me. Your solution is perfect!

    Mike

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Copying Excel chart to PowerPoint

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    HTH
    Regards, Jeff

  12. #12
    Registered User
    Join Date
    10-09-2012
    Location
    Plano, Texas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Copying Excel chart to PowerPoint

    Jeff - Thanks for the guidance about marking the thread as solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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