+ Reply to Thread
Results 1 to 8 of 8

Copy several graphs from Excel to Powerpoint

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Copy several graphs from Excel to Powerpoint

    Hi all,

    I hope you are doing well.

    I'm trying to copy and paste some graphs from my Excel file to a powerpoint that already exist.

    I've this code :
    Please Login or Register  to view this content.
    While the first graph get copied properly, I obtain this error (where the text is written in red in my code) : "Error - Invalid request. To select a shape its view must be active".

    Do you have an idea on how I can solve this?

    Thank you very much.
    Last edited by M_Michael; 07-16-2018 at 12:47 PM.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Copy several graphs from Excel to Powerpoint

    Hi Michael.M,
    maybe so
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Copy several graphs from Excel to Powerpoint

    Hi Nilem,

    Thanks for your answer. I tried but I still obtain the same error.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Copy several graphs from Excel to Powerpoint

    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Copy several graphs from Excel to Powerpoint

    Please Login or Register  to view this content.
    Last edited by nilem; 07-16-2018 at 04:34 PM.

  6. #6
    Registered User
    Join Date
    11-14-2012
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Copy several graphs from Excel to Powerpoint

    Quote Originally Posted by nilem View Post
    Please Login or Register  to view this content.
    Hi Nilem,

    Thanks it did work perfectly. Yet, the part now in green (place on the slide) does not work. The code is executed without a block but it's like orders the macro does not follow ? Would you know the reason?

    In addition, for the line in blue, should I increase the counter for each new chart ? i.e. next chart --> .Shapes(2).Select ?

    Thanks !

    @dflak : Thanks for your solution, I will keep it aside for the moment since it seems I'm on the good way with Nilem's solution ! But should you have any idea for my other challenges listed above, I'd be very happy to read your solution !

    Thanks !!

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Copy several graphs from Excel to Powerpoint

    Hm, it works for me. But try this
    Please Login or Register  to view this content.
    The new chart for slide #6 will be Shapes(2), than Shapes(3), etc.
    For slide #7, the numbering is repeated i.e. Shapes(1), Shapes(2), etc.

  8. #8
    Registered User
    Join Date
    11-14-2012
    Location
    New York, USA
    MS-Off Ver
    Excel 2010
    Posts
    18

    Re: Copy several graphs from Excel to Powerpoint

    Hi Nilem,

    So I tried and it indeed works but not for the desired shape ! There are pre-existing shapes on the slide like titles, page numbers, dates (inputed as textboxes) but it recognizes it as shapes. For the next people who have this issue, you can use the name selection instead of the number one, i.e. : .Shapes("Year to date").Select so that it selects the right shape !

    A big thank you to Nilem and dflak for their support !

    Michael

+ 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 Excel graphs to Powerpoint
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 04-01-2016, 01:51 PM
  2. [SOLVED] How to copy and paste 4 excel graphs into a single PowerPoint slide evenly?
    By Mirisage in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 03-07-2015, 12:47 AM
  3. Copy Excel Graphs to Powerpoint As Picture
    By Ajay_tippu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2014, 02:15 PM
  4. [SOLVED] Auto generate graphs in excel and copy them to powerpoint
    By aashr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2013, 12:49 PM
  5. Copy excel charts/graphs to Powerpoint with/without copying worksheet
    By ThomasCarter in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-12-2012, 09:05 AM
  6. Copy graphs to a powerpoint
    By joe12613 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-28-2009, 07:21 AM
  7. [SOLVED] Loop through combo and copy graphs to Powerpoint
    By Martin Los in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2005, 08:05 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