N
Nikki
Hi,
I have created a scale macro and 4 position macros for 4 pictures on
each slide. For the scale macro I can Select All 4 pictures and run
the macro to scale all at once but for the position macro I have to
select each picture one at a time. Then I have to go to the next
slide and do this all over again. Is there a way to run all 5 macros
with the current picture selected each time automatically?
The macros I have created already are:
Sub Scalepicture()
Set myDocument = ActivePresentation.Slides(1)
For Each s In myDocument.Shapes
Select Case s.Type
Case msoEmbeddedOLEObject, msoLinkedOLEObject, _
msoOLEControlObject, msoLinkedPicture, msoPicture
s.ScaleHeight 0.93, msoTrue
s.ScaleWidth 0.93, msoTrue
Case Else
s.ScaleHeight 0.93, msoFalse
s.ScaleWidth 0.93, msoFalse
End Select
Next
End Sub
Sub UpperLeft()
With ActiveWindow.Selection.ShapeRange
..Left = 20
..Top = 30
End With
End Sub
Sub LowerLeft()
With ActiveWindow.Selection.ShapeRange
..Left = 20
..Top = 250
End With
End Sub
Sub LowerRight()
With ActiveWindow.Selection.ShapeRange
..Left = 420
..Top = 250
End With
End Sub
Sub UpperRight()
With ActiveWindow.Selection.ShapeRange
..Left = 420
..Top = 30
End With
End Sub
Any help would be greatly appreciated.
I have created a scale macro and 4 position macros for 4 pictures on
each slide. For the scale macro I can Select All 4 pictures and run
the macro to scale all at once but for the position macro I have to
select each picture one at a time. Then I have to go to the next
slide and do this all over again. Is there a way to run all 5 macros
with the current picture selected each time automatically?
The macros I have created already are:
Sub Scalepicture()
Set myDocument = ActivePresentation.Slides(1)
For Each s In myDocument.Shapes
Select Case s.Type
Case msoEmbeddedOLEObject, msoLinkedOLEObject, _
msoOLEControlObject, msoLinkedPicture, msoPicture
s.ScaleHeight 0.93, msoTrue
s.ScaleWidth 0.93, msoTrue
Case Else
s.ScaleHeight 0.93, msoFalse
s.ScaleWidth 0.93, msoFalse
End Select
Next
End Sub
Sub UpperLeft()
With ActiveWindow.Selection.ShapeRange
..Left = 20
..Top = 30
End With
End Sub
Sub LowerLeft()
With ActiveWindow.Selection.ShapeRange
..Left = 20
..Top = 250
End With
End Sub
Sub LowerRight()
With ActiveWindow.Selection.ShapeRange
..Left = 420
..Top = 250
End With
End Sub
Sub UpperRight()
With ActiveWindow.Selection.ShapeRange
..Left = 420
..Top = 30
End With
End Sub
Any help would be greatly appreciated.