Skip to content

Instantly share code, notes, and snippets.

@ebibibi
Created April 9, 2013 04:12
Show Gist options
  • Select an option

  • Save ebibibi/5342892 to your computer and use it in GitHub Desktop.

Select an option

Save ebibibi/5342892 to your computer and use it in GitHub Desktop.
Change image size and location fit to powerpoint slide macro.
Sub ImageSizeFit()
On Error Resume Next
w = 720
h = 768
shapeNo = 3
For i = 56 To ActivePresentation.Slides.Count
Set Slide = ActivePresentation.Slides(i)
Slide.Shapes(shapeNo).Width = w
'Slide.Shapes(shapeNo).Height = h
Slide.Shapes(shapeNo).Left = 0
Slide.Shapes(shapeNo).Top = 0
Next
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment