Re: Rnd (Random) in VBA
From: Paul LaPlant (pepeexcel_at_hotmail.com)
Date: 04/14/04
- Next message: Dave Peterson: "Re: compile error"
- Previous message: TH: "Re: Excel Timer with Sheet Toggle Help"
- In reply to: Tom Ogilvy: "Re: Rnd (Random) in VBA"
- Next in thread: Tom Ogilvy: "Re: Rnd (Random) in VBA"
- Reply: Tom Ogilvy: "Re: Rnd (Random) in VBA"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Apr 2004 18:12:26 -0700
Thanks for the quick replies. Tom, yours did the trick. The only thing
I changed was to adjust
lngNum = Rnd() * 6 + 1
to
lngNum = Rnd() * 5 + 1.
This gives me my random between 1 and 6. The first method gave me up to
7.
This was great. As usual, you are a big help.
Paul
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- Next message: Dave Peterson: "Re: compile error"
- Previous message: TH: "Re: Excel Timer with Sheet Toggle Help"
- In reply to: Tom Ogilvy: "Re: Rnd (Random) in VBA"
- Next in thread: Tom Ogilvy: "Re: Rnd (Random) in VBA"
- Reply: Tom Ogilvy: "Re: Rnd (Random) in VBA"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|