Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-14-2012, 01:12 PM
JohnWilson JohnWilson is offline Create "Roll dice" simulation? (random number gen object?)) Windows 7 64bit Create "Roll dice" simulation? (random number gen object?)) Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

You can do this by creating 6 slides each with a different die animation and a further slide with a button to run a macro. The six die slides should have on click transition OFF and a button to get back to the first slide.

Assuming the die slides are # 2 - 7

Sub chooseMe()
Dim choice As Integer
Randomize
choice = (Rnd * 6) + 1
SlideShowWindows(1).View.GotoSlide (choice + 1), msoTrue
End Sub

If you don't know how to use a macro see here
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create "Roll dice" simulation? (random number gen object?)) Any "InsertRowsBelow" in Tables Object? tinfanide Word VBA 2 06-11-2012 04:41 AM
Create "Roll dice" simulation? (random number gen object?)) Mailing: how to make the "page number" in Word is the same as "row number" in excel w Jamal NUMAN Word 1 09-03-2011 11:37 AM
Create "Roll dice" simulation? (random number gen object?)) How to choose a "List" for certain "Heading" from "Modify" tool? Jamal NUMAN Word 2 07-03-2011 03:11 AM
Tricky "random word" Question!! seba1685 PowerPoint 0 04-21-2011 12:17 AM
in WORD, how do i type a 9-digit phone number "xxxxxxxxx" and have it automatically.. jay8962 Word 0 04-08-2010 11:08 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:10 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft