View Single Post
 
Old 08-14-2015, 03:27 AM
shaivya1998 shaivya1998 is offline Windows 8 Office 2013
Novice
 
Join Date: Aug 2015
Posts: 5
shaivya1998 is on a distinguished road
Default

Quote:
Originally Posted by JohnWilson View Post
Not sure I really understand but maybe

Code:
Sub cropFit()
Dim osld As Slide
Dim oshp As Shape
On Error Resume Next
Set osld = ActiveWindow.View.Slide
If Not osld Is Nothing Then
For Each oshp In osld.Shapes
If oshp.Type = msoPlaceholder Then
If oshp.PlaceholderFormat.Type = ppPlaceholderPicture Then
oshp.Select
CommandBars.ExecuteMso ("PictureFitCrop")
End If 'picture placeholder
End If 'placehoder
Next oshp
End If ' Slide selected
End Sub


It isn't working with picture layouts.
Reply With Quote