+ Reply to Thread
Results 1 to 7 of 7

Cut Paste charts from one slide to other

  1. #1
    Registered User
    Join Date
    12-18-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010
    Posts
    55

    Cut Paste charts from one slide to other

    Hi VBA Masters

    I am looking to cut the chart from one slide and paste it on the other visible slide at same position. It may require two different macro, 1st to store the position of selected chart create duplicate chart and cut... 2nd macro to paste on visible slide and apply the stored position.

    I am not VBA pro, I have googled a lot and below is the code I reached so far to paste chart atleast on same slide.... but its not working

    Requesting to look into it

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Cut Paste charts from one slide to other

    This works for me and always appears to place chart in same position as original without being given coordinates

    1 Place this code in a new module in powerpoint
    Please Login or Register  to view this content.
    2 Select chart and run GetShape

    3 Activate target slide and run CutAndPaste
    Last edited by kev_; 09-06-2020 at 03:04 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  3. #3
    Registered User
    Join Date
    12-18-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Cut Paste charts from one slide to other

    Hi Kev

    Thanks for looking into this. The code is working fine, the only problem is it is cutting the original shape/chart. is there anyway to keep the original as is?

    Regards,
    Charm

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Cut Paste charts from one slide to other

    Quote Originally Posted by charm1 View Post
    Post#1
    I am looking to cut the chart from one slide and paste it on the other visible slide at same position

    Post#3
    ... only problem is it is cutting the original shape/chart ...
    Hmmm!



    Away from PC so cannot test until later ...

    Try Replacing .Cut with .Copy
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-18-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Cut Paste charts from one slide to other

    Hi Kev

    Many thanks for your reply. It is important that it should CUT (not copy) the chart by keeping the original (by creating a duplicate of original).

    I have tried below code after doing some modification in your code. It is working for autoshapes but not for charts.

    Can you please look into this whenever you have access to you PC.

    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Cut Paste charts from one slide to other

    Delete prior code

    Please Login or Register  to view this content.
    1 Select chart & run GetShape
    2 Select Target Slide & run CutAndPaste

  7. #7
    Registered User
    Join Date
    12-18-2012
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Cut Paste charts from one slide to other

    Many Many Thanks, Kev

    It is working with Charts as well

    Marking this thread as "Solved"

    Regards,
    Charm

+ 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. Replies: 1
    Last Post: 07-28-2017, 07:20 AM
  2. Copy and paste entire slide as an picture into new slide
    By Alistairm88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-02-2015, 10:29 AM
  3. two excel charts per powerpoint slide
    By stubyh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2013, 11:09 AM
  4. Copy and paste some charts from excel into specific slide on a powerpoint template
    By ones4rus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-23-2013, 03:00 AM
  5. generate two charts on one slide in ppt using vba
    By spurthi008 in forum PowerPoint Programing
    Replies: 4
    Last Post: 10-10-2012, 05:43 AM
  6. Replies: 0
    Last Post: 12-02-2011, 12:06 PM
  7. 2 Data Sets, 2 Charts, 1 Slide?
    By ajocius in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-23-2008, 05:31 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