+ Reply to Thread
Results 1 to 14 of 14

Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

  1. #1
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    Good Day,

    Hope all is well.

    I have search the internet and it seems I can not find the answer for my problem. Hope someone can perhaps help me.

    I have an excel sheet and embedded in the sheet is a PowerPoint (ppt) slide (one slide) with a table on it.

    I want to open the embedded ppt file with the slide in excel. This code I have to select the object and open it. However I cannot figure out how to copy just the table shape that is on the slide??? I manage to copy the whole object, but this is not what I want because it copies the whole slide and not just the table.

    The code I have:

    Please Login or Register  to view this content.
    Thanks a million!!!!

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,435

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    Something like this.
    Modify the shape indexes to match your data.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    Hi Andy,

    Thank I have tried it this morning, however it gives me an error immediately on the z.verb 2 line. I need help on the last piece of the code for copy. the rest that I have runs perfectly to open the object 8 , but can not get the shape to copy.

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,435

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    Isn't the default verb for powerpoint to go into slideshow mode?
    You will not be able to get the table object in that state.

    Post example file so we can test the code

  5. #5
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    Hi Andy,

    If I run the code I shared it opens the object 8 perfectly so I can edit the slide table info in excel, however after editing I want to copy that table to the clipboard basically. As per the picture you can see it is selected and open for editing.

    Attachment 783736

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,435

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    I can not see the attachment.

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  7. #7
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    Hi Andy,

    I have attached a basic example using a button.
    Attached Files Attached Files

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,435

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    This code in the button click event works for me

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    You are right it works perfectly in the example sheet. Can not wrap my head why it is not working in my other sheet. It is setup the same basically but it give the same error of the z.Verb 2 line. Attached picture with error code.
    Attached Images Attached Images

  10. #10
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,435

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    so what happens if you try other values for the verb method?

  11. #11
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    Even in the example sheet if I delete the verb number 2 it still works, but in my other sheet not. to be honest I have no idea what the verb number means. I tried a few things again and no luck. I even added a button as well, with your code and still no luck. There is only that one object on the sheet as well, exactly as the example one. Head scratcher for me know....

  12. #12
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    Hi, I have uploaded my other sheet for you to see. I have deleted sensitive info etc.

    You will see on the tab GCD CPPM Progress is the button to copy etc.

    Thanks!

  13. #13
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,435

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    You did not change the shape index reference. So you were trying to open the straight arrow connector.

    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    10-30-2014
    Location
    Pretoria, South Africa
    MS-Off Ver
    Office 365
    Posts
    111

    Re: Copy a table shape from a PowerPoint slide embedded in excel file to clipboard

    Genius!!!!! Thank you so much for educating me! Appreciate it very much!!!

+ 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. Resizing a Shape between the Subtitle and Footer in a Powerpoint Slide
    By junoon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-17-2020, 04:17 PM
  2. Replies: 0
    Last Post: 07-18-2019, 07:43 AM
  3. Using VBA to copy a Pivot Table to a PowerPoint slide.
    By Keytnknd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2017, 03:22 PM
  4. Copy and Paste Excel range as embedded table in Powerpoint (Mac)
    By OliverBrain in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-01-2015, 10:27 AM
  5. Script to copy excel table in to a powerpoint slide
    By Robert110 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2014, 06:15 PM
  6. Copy Range from Excel to Powerpoint Slide
    By cricrazy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2009, 07:11 PM
  7. Powerpoint slide shape deletion
    By joe12613 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2009, 01:42 PM

Tags for this Thread

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