G
george 16-17
Greetings,
I am in need of some assistance, as I am new to PP VBA. I found this thread
(
http://www.microsoft.com/communitie...&p=1&tid=c371ac6f-cdc3-4f37-abfd-c74d6f364f0e ) about programming a random spinner.
The suggested code in the thread above works well:
Sub RndSpin(oShp as Shape)
Dim t As Single
t = Timer + (Rnd * 4) + 1
Do Until Timer > t
oShp.Rotation = oShp.Rotation + 5
DoEvents
Loop
End Sub
But the rotating is activated by clicking on the shape that rotates.
My question is: Is there a way to click on an action button to start another
shape (an arrow) randomly spinning?
Thanks in advance and any advice is deeply appreciated,
george
I am in need of some assistance, as I am new to PP VBA. I found this thread
(
http://www.microsoft.com/communitie...&p=1&tid=c371ac6f-cdc3-4f37-abfd-c74d6f364f0e ) about programming a random spinner.
The suggested code in the thread above works well:
Sub RndSpin(oShp as Shape)
Dim t As Single
t = Timer + (Rnd * 4) + 1
Do Until Timer > t
oShp.Rotation = oShp.Rotation + 5
DoEvents
Loop
End Sub
But the rotating is activated by clicking on the shape that rotates.
My question is: Is there a way to click on an action button to start another
shape (an arrow) randomly spinning?
Thanks in advance and any advice is deeply appreciated,
george