Option Explicit
' ==============================================
' PowerPoint VBA Macro (runs in the PPT VBE)
' Written by : Jamie Garroch of YOUpresent Ltd.
' Date : 25 OCT 2018
' http://youpresent.co.uk/
' ==============================================
Public Sub RotateAllPictures90()
Dim oSld As Slide
Dim oShp As Shape
' Change to -90 if you need it to go the other way
Const ROTATION_ANGLE = 90
On Error GoTo errorhandler
' Process all slides across the active presentation
For Each oSld In ActivePresentation.Slides
' Process all objects on each slide (assumes pictures are not part of a group)
For Each oShp In oSld.Shapes
Select Case oShp.Type
' Process picture objects only, assuming they are not in placeholders
Case msoPicture, msoLinkedPicture
oShp.Rotation = oShp.Rotation + ROTATION_ANGLE
Case Else ' do nothing
End Select
Next
Next
Exit Sub
errorhandler:
Debug.Print Err, Err.Description
End Sub