View Single Post
 
Old 04-27-2017, 07:23 AM
JohnWilson JohnWilson is offline Windows 7 64bit Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Not sure why you think content placeholders cannot be rotated.

There is nothing in the Object Model to set the crop type but it is possible by calling executeMso (essentially having code click the button)

Try this

Code:
Sub fixCrop()
   Dim osld As Slide
   Dim oshp As Shape
   For Each osld In ActivePresentation.Slides
      For Each oshp In osld.Shapes
         If oshp.Type = msoPlaceholder Then
            If oshp.PlaceholderFormat.Type = ppPlaceholderPicture Then
               ActiveWindow.View.GotoSlide (osld.SlideIndex)
               oshp.Select
               CommandBars.ExecuteMso ("PictureFitCrop")
            End If
         End If
      Next
   Next
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote