PowerPoint Hints, Tips & Tutorials

Making a game that needs dice?

STOP PRESS

See our brand new AddIn that can produce realistic Dice throws, coin flips and random name choices WITHOUT vba or flash.

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.

 

 

See also the newer site here to buy

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.