1

I am working on automation tool. I want to set image Aspect ratio to 100 % on each slide. Is there any property for that in vba?

Thanks in Adv.

Pratik Gujarathi
  • 748
  • 10
  • 22
  • 40

1 Answers1

2

Do you mean like this?

Option Explicit

Sub Sample()
    Dim shp As Shape

    Set shp = ActivePresentation.Slides(1).Shapes("Picture 1")

    With shp
        .ScaleHeight 1, msoTrue
        .ScaleWidth 1, msoTrue
    End With
End Sub
Siddharth Rout
  • 147,039
  • 17
  • 206
  • 250