Does anybody have any suggestions on how to accomplish
this?
x = INT ( RND * 9 ) + 1
INT tells the computer you want an integer
RND asks for the random decimal
9 is the range the numbers will span
and 1 is the starting point
Then all you need to do is plug this number in where you want it.
B
"Pamela McDonald" <pmcd...@sempra.com> wrote in message
news:052001c2f498$cce0b500$3001...@phx.gbl...
>.
>
It is a programming language that allows the user to direct what the
application (PowerPoint, in this case) does more directly. It can be
accessed from PowerPoint => Tools => Macros => Visual Basic Editor.
At this point, I should caution you. VBA is very flexible, powerful, and
frustrating. If you want to know this route then I'd recommend a better
tutor then I. But let's give it a go, shall we?
1) Under view => toolbars => controls
(Show the controls in a toolbar)
2) Click on the Command Button
(If you do not know which this is, let the cursor hold over it and the
help label should identify it after a moment)
3) Move the cursor over the slide, click and drag the button to size and
release.
(You now have a button on your slide)
4) Double click on the button
(This opens the Visual Basic Editor)
5) On the next line below "Private Sub CommandButton1_Click()" type these
two lines:
x = Int(Rnd * 9) + 1
CommandButton1.Caption = Str(x)
6) Close the VBA window
7) Run the presentation
When you click on the command button, it should change from words to a
random number from 1 to 10.
Hope this gets you started on your path.
B
"Pamela McDonald" <pmcd...@sempra.com> wrote in message
news:010901c2f4a9$c10202a0$a601...@phx.gbl...
That and the stuff in either direction should give you an idea about
VBA/PPT.
--
Using the Web view of the newsgroup?
Visit http://www.rdpslides.com/pptfaq/FAQ00024.htm to learn a better way!
======================
Steve Rindsberg PPT MVP
PPTools: http://www.pptools.com
PPT FAQ: http://www.pptfaq.com
Featured PPTGeek at PPTLive, http://www.pptlive.com
"Pamela McDonald" <pmcd...@sempra.com> wrote in message
news:010901c2f4a9$c10202a0$a601...@phx.gbl...
>.
>