Professional Documents
Culture Documents
With ActivePresentation.PageSetup
SldH = .SlideHeight
SldW = .SlideWidth
End With
lTotal = GetPictureCount(oSld)
lCount = lCount + 1
With oShp
.LockAspectRatio = False
oShp.Height = 72 * 5.4
oShp.Width = 72 * 9.77
Case Is = 2
' Picture 1
If lCount = 1 Then
oShp.Height = 72 * 4.4
oShp.Width = 72 * 6.17
oShp.Left = 30
oShp.Top = SldH / 8 + 50
oShp.Line.Weight = 3
oShp.Line.Style = msoLineSingle
oShp.Line.ForeColor.RGB = RGB(0, 0, 0)
' Picture 2
oShp.Height = 72 * 4.4
oShp.Width = 72 * 6.17
oShp.Left = SldW / 2 + 15
oShp.Top = SldH / 8 + 50
oShp.Line.Weight = 3
oShp.Line.Style = msoLineSingle
oShp.Line.ForeColor.RGB = RGB(0, 0, 0)
End If
Case Else
Debug.Print lTotal & " picture(s) found on slide " & oSld.SlideIndex
End Select
End With
End If
Next
lCount = 0
Next
End Sub
lCount = lCount + 1
Case msoPlaceholder
lCount = lCount + 1
End If
End Select
Next
GetPictureCount = lCount
End Function