Help!

Rand numbers

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA RSS
Next:  Tracking direct mail campaign  
Author Message
Robert
External


Since: Sep 07, 2004
Posts: 323



PostPosted: Tue Mar 17, 2009 2:00 pm    Post subject: Rand numbers
Archived from groups: microsoft>public>outlook>program_vba (more info?)

how do u get rand numbers in power point?
Back to top
Bruno Campanini
External


Since: Jun 01, 2007
Posts: 7



PostPosted: Tue Mar 17, 2009 9:10 pm    Post subject: Re: Rand numbers [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Robert" <Robert DeleteThis @discussions.microsoft.com> wrote in message
news:CC6167D2-5E69-4F24-987E-8E1FB7228134@microsoft.com...
> how do u get rand numbers in power point?

This generates random integers between 10 and 100
=================================================
Public Sub Test()
Dim Lowerbound As Long, Upperbound As Long

Lowerbound = 10: Upperbound = 100
MsgBox Int((Upperbound - Lowerbound + 1) * Rnd + Lowerbound)

End Sub
=================================================

Bruno
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming VBA All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum