Hi Octavio, Your modification doesn’t seem to respond when clicked-could you please take another look at it. The original code worked OK but only on the first click. I recall reading somewhere that CSS will only apply a style once when the object is selected by ID, and that you need to select by class but not sure how that is done. I do remember having a similar problem with excel VBA and had to select some other object (in my example cell A1) and then reselect the button I wanted to rotate each time. The button had to be referred to as an array-see below-different language I know but maybe some parallels, regards Dave.
Sub Rotate()
Dim count As Integer
For count = 1 To 9
Worksheets(“Sheet7”).Shapes.Range(Array(“Rectangle 11”)).Select
With Selection.ShapeRange
.ThreeD.IncrementRotationX 10
End With
Worksheets(“Sheet7”).Range(“A1”).Select
Next
End Sub