Share via

VBA Code for Resizing PowerPoint Page Size without Skewing Pictures

Anonymous
2018-11-26T19:31:48+00:00

Hello, I have many PowerPoint 2010 file that each contains hundreds of pages.  Each page is 19" x 19" and contains a single picture and nothing else.  The pictures are different on different pages. I'd like to change the page size to 17" x 11" and the position the picture on each page so that the bottom left corner of the picture coincides with the bottom left corner of the page. 

Is there a way to do this in batch using VBA codes?

The best would be to do this in the same file, but if it is more convenient to copy the pictures one by one into a new file that has the 17" x 11" page size, that works too.

Thank you so much!  It would save me a lot of time.  I appreciate it!

Microsoft 365 and Office | PowerPoint | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Steve Rindsberg 99,166 Reputation points MVP Volunteer Moderator
    2018-11-27T16:53:42+00:00

    Hi,

    As John's mentioned, this can be trickier than it appears at first blush (though your particular situation does simplify things compared to the general problem of resizing any old PPT).

    I have a commercial  resizing add-in that will get you most of the way there:

    My PPTools RESIZE add-in

    The free demo will allow you to test it thoroughly; it will create a resized version of your presentation containing the first five slides of the original (which it will not touch).

    It won't reposition the images as you've described, but if you want to give it a try and then post a link to a resized presentation or two in reply here, I'll be happy to have a go at writing a bit of VBA to take it the rest of the way.  I can't guarantee that it'll be possible, but at these prices (nada), you wouldn't be risking much.

    Was this answer helpful?

    0 comments No comments
  2. John Korchok 232.8K Reputation points Volunteer Moderator
    2018-11-26T21:28:22+00:00

    You would have to resize the presentation, then iterate through each shape on each slide, identify which shapes are pictures, then reset the size to be the same percentage for both width and height. There are some very talented programmers here, but this is not a free macro-writing service. Please post the code you have developed to date.

    Was this answer helpful?

    0 comments No comments
  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more