I have a bit of code that will loop and add shapes to pre-formatted sheet, all row widths are the same, all column widths are the same.. as the macro loops more and more the shapes start to become out of place but ONLY down, they don't move left or right, just further down than what they should be.
Can anyone solve why?
Can anyone solve why?
Code:
Set oNewPic = Sheets(template.Name).Shapes.AddPicture(Filename:=sFolder & .Cells(x, 10) & ".jpg", _ linktofile:=msoFalse, _
savewithdocument:=msoCTrue, _
Left:=rngPicPosition.Left, _
Top:=rngPicPosition.Top, _
Width:=-1, Height:=-1)
With oNewPic
.Height = 100.629933
.Width = 92.6929242
.IncrementLeft 26.1
.IncrementTop 8.7
.LockAspectRatio = msoTrue
.Rotation = 0
End With