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

    Home » Forums » AskWoody support » Productivity software by function » MS PowerPoint and presentation apps » Macro to replace PowerPoint pictures from one set of slides to another

    • This topic has 4 replies, 3 voices, and was last updated 11 years ago.
    Author
    Topic
    #494943

    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!

    Viewing 2 reply threads
    Author
    Replies
    • #1454739

      Can’t you just use ‘save as’ to the new PPT then edit as required? This will keep the notes as well.

      Eliminate spare time: start programming PowerShell

    • #1454746

      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.)

      • #1456684

        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

    • #1454749

      OK, sorry, I should have read your post more carefully.:huh:

      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_do_I_use_VBA_code_in_PowerPoint.htm.

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

      Eliminate spare time: start programming PowerShell

    Viewing 2 reply threads
    Reply To: Macro to replace PowerPoint pictures from one set of slides to another

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: