View Single Post
 
Old 12-20-2011, 10:14 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

This should work on all pics. Obviously if there is more than one pic per slide they will superimpose!

Code:
Sub fix_Pic_all()
Dim opic As Shape
Dim osld As Slide
For Each osld In ActivePresentation.Slides
For Each opic In osld.Shapes
If opic.Type = msoPicture Then
With opic
.Left = cm2Points(9)
.Top = cm2Points(3.46)
.LockAspectRatio = False
.Width = cm2Points(16.09)
.Height = cm2Points(15.5)
.Line.ForeColor.RGB = vbBlack
.Line.Weight = 2
End With
End If
Next opic
Next osld
End Sub
Function cm2Points(inVal As Single)
cm2Points = inVal * 28.346
End Function
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials

Last edited by JohnWilson; 12-21-2011 at 01:58 AM.
Reply With Quote