PowerPoint Hints, Tips & Tutorials

Making a game that needs dice?

Its pretty hard to create a dice type function in Powerpoint and most solutions need vba. Maybe your vba skills are not up to this or vba is not suitable. Vba can create major problems if the user has high security settings and won't run at all if the viewer is used.

Here's a presentation that uses only normal Powerpoint animations but gives random "throws" of a spinner.

You're welcome to download and freely use the demo which is fully working but watermarked. You won't be able to change the presentation or incorporate the animation in your own work unless you purchase the download password for the unprotected version.

You can do this below . It's only $19.99 (£9.99) and you get a free gift! - Flash dice that can be thrown (Note these won't work in the viewer)

See also the newer site here

Download Demo of Spinner

BUY BY CLICKING BUTTON

 

vba

Using vba to create a random number. This is how to create random number within a given range

Number =Int ((highest number - (one less than lowest number) *rnd)+lowest

So for a range 10 to 20

Inum=Int (( 20-9) * rnd) +10 or Int (11*rnd)+10

To jump to a random slide between 10 and 20

Sub randjump
Randomize
Inum = Int (11*rnd)+10
ActivePresentation.SlideShowWindow.View.GotoSlide(Inum)
End Sub

Or to make random shapes visible or not substitute

ActivePresentation.Slides(1).Shapes(Inum).Visible=msoFalse

(Change slide number as required)

Back to PowerPoint Tips Home

Spinner

Screen shot

 

 


www.technologytrish.co.uk home

While we make every effort to verify the accuracy of all information Technology Trish Ltd cannot be held responsible for any damage to files. It is good practice to work on a copy of the file.