Thanks for the code. I wanted to be able to automatically resize screenshots to fit the size of the slide. I guess other people will need to do this too, so I am posting what I did.
Firstly, in PowerPoint 2010, in the page setup, I set the slides in 16: 9 format to fit the proportions of my monitor / screen shots. Then I added a blank slide and inserted an image for each screenshot. Then I ran this code:
Sub ResizeAll() For each tSlide in ActiveWindow.Presentation.Slides tSlide.Select With tSlide.Shapes.Item(1) 'assume a blank slide with one image added only .Select .Height = ActiveWindow.Presentation.PageSetup.SlideHeight .Width = ActiveWindow.Presentation.PageSetup.SlideWidth .Left = 0 .Top = 0 End With Next End Sub
source share