View Single Post
 
Old 08-14-2015, 08:11 AM
shaivya1998 shaivya1998 is offline Windows 8 Office 2013
Novice
 
Join Date: Aug 2015
Posts: 5
shaivya1998 is on a distinguished road
Default

Quote:
Originally Posted by JohnWilson View Post
A photo isn't really a sample of the slide but at least I can see you mean a Smart Art layout.

Make sure the Smart Art is selected and try this - USE A COPY!

Code:
Sub chexSA()
Dim osa As SmartArt
Dim osld As Slide
On Error Resume Next
Dim i As Integer
Set osa = ActiveWindow.Selection.ShapeRange(1).SmartArt
For i = 1 To osa.AllNodes.Count
osa.AllNodes(i).Shapes(2).Select
CommandBars.ExecuteMso ("PictureFitCrop")
Next
End Sub
Thanks man it worked. Really thanks....
Reply With Quote