Thanks Norie,
It works fine, i just made a small tweak. However, i would like to have this shape rotate on each shape click. Please advise
Sub Rotate1()
Dim arrShapeNames As Variant
Dim I As Long
Const MinAngle& = 51, MaxAngle& = 366
Dim phi&, Ratio#, t!
arrShpNames = Array("Rectangle 1", "Rectangle 2", "Rectangle 3", "Rectangle 4")
For I = LBound(arrShpNames) To UBound(arrShpNames)
With Sheets("Mobile").Shapes(arrShpNames(I))
' Rotate clockwise
For Ratio = 0.5 To 1 Step 0.02
' Calc the rotation angle in degrees
phi = MinAngle + (MaxAngle - MinAngle) * Ratio
' Rotate shape
.Rotation = phi
' Make pause
t = Timer + 0.01: While Timer < t: DoEvents: Wend
Next Ratio
End With
Next I
End Sub
Bookmarks