+ Reply to Thread
Results 1 to 2 of 2

VBA: Inserting data from Excel into Powerpoint slide

  1. #1
    Forum Contributor
    Join Date
    12-06-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    201

    VBA: Inserting data from Excel into Powerpoint slide

    I'm absolute novice when it comes to Powerpoint and novice when it comes to Excel so bear with me please.

    Using VBA I need to insert a small range from a Excel worksheet into a already existing Powerpoint presentation. In the presentation the shape where the data is shown is marked as a picture? So I need to copy the range in Excel (say B2:E10) and paste it into the presentation 'Picture'? The data in the Excel range changes everyday so the presentation must be updated everyday with the new data.

    I can open/save the presentation, go to the slide and select the shape but then I get stuck. How do I paste the data as a picture into the presentation or as some other type of shape that can show the data same as it looks in Excel?

  2. #2
    Forum Contributor
    Join Date
    12-06-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2010
    Posts
    201

    Re: VBA: Inserting data from Excel into Powerpoint slide

    If I knew this was going to be such a schlep I would not have started at all.

    The template example shape has an ID of 6 so I can select the example shape with
    Please Login or Register  to view this content.
    and then get the coordinates (I hope!)
    Please Login or Register  to view this content.
    and then delete the example shape (otherwise the new one is just pasted over the example - couldn't figure out how to replace the 'whatever it is' in the current shape)
    Please Login or Register  to view this content.
    I am then able to copy my range in Excel and paste it into the presentation with
    Please Login or Register  to view this content.
    and here everything goes to crap!

    The new shape that was pasted is in the middle of the slide and it's bigger than it should be. So now I want to get it into the position where the example is on the slide and the same size as the example was on the slide.

    To do this I need to get the new ID of the new shape that were pasted onto the slide and that is the selected shape but everything I tried to get that ID was in vain. Spend hours on the net and each and every example I could find did not work. I'm so tired of seeing the 'Object doesn't support this property or method' message I could crap myself.

    How on God's green earth do I get the new shape ID of the selected shape on the selected slide so that I can try and work with the new shape?

+ 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. PowerPoint live update excel data during slide show
    By Tyger0951 in forum PowerPoint Formatting & General
    Replies: 8
    Last Post: 10-15-2019, 10:38 AM
  2. Replies: 0
    Last Post: 07-18-2019, 07:43 AM
  3. Replies: 0
    Last Post: 07-11-2019, 05:36 AM
  4. [SOLVED] Add slide in Powerpoint via Excel
    By benishiryo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2015, 06:24 AM
  5. Replies: 6
    Last Post: 08-18-2015, 06:39 AM
  6. PowerPoint live update excel data during slide show
    By Tyger0951 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2014, 02:51 AM
  7. pasting excel data in a powerpoint slide
    By James in forum Excel General
    Replies: 4
    Last Post: 01-28-2005, 11:06 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