Results 1 to 5 of 5
  1. #1
    New Lounger
    Join Date
    Feb 2014
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Macro to replace PowerPoint pictures from one set of slides to another

    I create many PPT with pictures (one picture per slide). Many times, I need to replace a series of pictures from one PPT to another PPT. I don't want to change anything else on the "receiving" PPT. I need to keep all of the slide notes.

    Here is what I need:

    1. Go to "new" PPT - slide 1, copy the picture
    2. Go to "current" PPT - slide 1, delete the current picture and paste the copied picture
    3. Then go to slide 2, slide 3, etc. and do the same thing

    Can a macro do this? Anyone have any existing code I can start with?

    Many thanks!

  2. #2
    5 Star Lounger access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    618
    Thanks
    55
    Thanked 46 Times in 43 Posts
    Can't you just use 'save as' to the new PPT then edit as required? This will keep the notes as well.

  3. #3
    New Lounger
    Join Date
    Feb 2014
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks for your thought ---but I need to replace the current picture with the new picture. This is typically about 20+ pictures per Presentation - so it is a lot of copying, deleting, and pasting back and forth. So it would be great to have a macro that would do this for me.

    A different approach would be to have a macro that deletes all of the pictures for slides X1 to X20 and then insert selected slides from a directory (just need to make sure the new pictures completely scale to the slide.)

  4. #4
    5 Star Lounger access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    618
    Thanks
    55
    Thanked 46 Times in 43 Posts
    OK, sorry, I should have read your post more carefully.

    Perhaps VBA would be the answer. I have experience in Access, but not PP, but there are guides like http://msdn.microsoft.com/en-us/office/aa905465.aspx and http://www.pptfaq.com/FAQ00033_How_d...PowerPoint.htm.

    Nothing better than writing your own scripts, once you get past the initial 'how on earth do I ...' reaction!.

  5. #5
    New Lounger
    Join Date
    Jun 2014
    Location
    Bangalore
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey manray,

    Can you provide me with the below details which will assist in a deciding a Macro build.

    You said No. of Slides is 20[Is it fixed in both Presentations]
    What is the Picture's name in every slide is it static across all slides[Ex : Picture1] or does it vary across slides[Both Presentations]
    are there multiple Pictures/Shapes in every slide[To identify the actual image to be copied]

    If you can confirm the above, may be I can assist you with a Macro.

    Happy Programming,
    Ravicious
    http://ravicious.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •