Skip to content

Instantly share code, notes, and snippets.

Last active June 8, 2016 05:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save xight/fe1a2d571dd1bac6c5ac24aeef22e2ab to your computer and use it in GitHub Desktop.
Sub ResizeShapesToFullsize()
Dim w As Integer
Dim h As Integer
w = ActivePresentation.PageSetup.SlideWidth
h = ActivePresentation.PageSetup.SlideHeight
Dim sld As Slide
Dim sh As Shape
targetNameArr = Array("Picture 6", "Content Placeholder 6")
For Each sld In ActivePresentation.Slides
For Each sh In sld.Shapes
For Each targetName In targetNameArr
If sh.Name = targetName Then
sh.Width = w
sh.Height = h
End If
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment