I am importing a number of photos in a word document. The photo's are a mix of portrait/landscape. I have some code to try and rotate the portrait ones but it doesn't seem to work can anyone help please.
Thanks
Angie
Code:
objWordApplication.Selection.InlineShapes.AddPicture(filename:=strFullName, LinkToFile:=False, SaveWithDocument:=True, Range:=v_range)
intCount = objWordApplication.Documents(1).InlineShapes.Count
If strOrientation = "Portrait" Then
objWordApplication.Selection.ShapeRange.Rotation = 90#
objWordApplication.Documents(1).Selection.ShapeRange.IncrementRotation(90.0#)
End If
Thanks
Angie