How To Resize And Center Pictures In Powerpoint 2007

Preview:

DESCRIPTION

Find out How To Resize and Center Pictures using a Macro in Powerpoint 2007.

Citation preview

How to Resize and Center Pictures in Powerpoint 2007

By Manfred Ekblad

Click!

1. Enter name

2. Click!

Sub resize_center()

Dim osld As SlideDim oshp As ShapeDim x As IntegerDim y As Integer

With ActivePresentation.PageSetupx = .SlideWidth / 2y = .SlideHeight / 2End With

For Each osld In ActivePresentation.SlidesFor Each oshp In osld.Shapes

If oshp.Type = msoPicture Thenoshp.LockAspectRatio = msoTrueoshp.Height = y * 2 * 0.9

If oshp.Width > x * 2 * 0.9 Thenoshp.Width = x * 2 * 0.9

End If

oshp.Left = x - (oshp.Width / 2)oshp.Top = y - (oshp.Height / 2)

End If

NextNext

End Sub

Copy…

…and paste!

Then… close!

Click!

Click!

Verify!

1. Select to save as macro-enabled

Powerpointpresentation

2. Click to save!

Finito!

Connect with me on twitter.com

http://twitter.com/SecretLaunch