#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default animation

I have a business simulation game that I use in class. The winner is
determined from spinning a "wheel of fortune" for which I have already
written the macro. I would like to show a spinning roulette wheel
before the results of each spin is shown. Is there an easy way to add
animation?
I have reviewed the information from J Walk's website, downloaded some
jpg files but am a novice from this point forward.

J Campbell

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 318
Default animation

Hi,

Here is some code for you to play around with

Cut and paste this code into a module.
Also place a star shape object from the drawing tool into sheet1 - somewhere
in the center of the sheet. Note that it must be the only or atleast the
first shape on the sheet. Then run the macro called Spin1

Sub Spin(ByVal dVal As Double)

Dim i As Double

With Sheet1.Shapes(1)
For i = 0 To dVal Step 0.1
.Rotation = i
DoEvents
Next i
End With

End Sub

Sub Spin1()
Spin 100
End Sub


"John Campbell" wrote:

I have a business simulation game that I use in class. The winner is
determined from spinning a "wheel of fortune" for which I have already
written the macro. I would like to show a spinning roulette wheel
before the results of each spin is shown. Is there an easy way to add
animation?
I have reviewed the information from J Walk's website, downloaded some
jpg files but am a novice from this point forward.

J Campbell


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Animation Weave New Users to Excel 1 December 7th 05 02:21 PM
Animation Andy pop Excel Programming 2 November 16th 04 02:41 PM
Animation No Name Excel Programming 2 July 15th 04 11:14 PM
Animation Adam Klee Excel Programming 3 August 12th 03 01:15 PM
animation Adam Klee Excel Programming 0 August 12th 03 08:04 AM


All times are GMT +1. The time now is 01:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"