How To Resize And Center Pictures In Powerpoint 2007 - Presentation Transcript
How to Resize and Center
Pictures in Powerpoint 2007
By Manfred Ekblad
Click!
1. Enter name
2. Click!
Sub resize_center()
Dim osld As Slide
Dim oshp As Shape
Dim x As Integer
Dim y As Integer
Copy…
With ActivePresentation.PageSetup
x = .SlideWidth / 2
y = .SlideHeight / 2
End With
For Each osld In ActivePresentation.Slides
For Each oshp In osld.Shapes
If oshp.Type = msoPicture Then
oshp.LockAspectRatio = msoTrue
oshp.Height = y * 2 * 0.9
If oshp.Width > x * 2 * 0.9 Then
oshp.Width = x * 2 * 0.9
End If
oshp.Left = x - (oshp.Width / 2)
oshp.Top = y - (oshp.Height / 2)
End If
Next
Next
End Sub
Then…
close!
…and paste!
Click!
Click!
Verify!
1. Select to save as
macro-enabled
Powerpoint
presentation
2. Click to save!
Finito!
Connect with me on twitter.com
http://twitter.com/SecretLaunch
4 comments
Comments 1 - 4 of 4 previous next Post a comment