Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Stop Re-calculating Randbetween

I am developing some simple math questions for my son, and use Randbetween to
generate lists of number for him to do calculations upon. However if he
enters his answers into the spreadsheet, excel re-calculates and changes the
random number values in the math problem. I want to be able to keep the
random numbers, allow my son to enter his answers, use a formula to check
which answers are correct, and not change any of the random numbers until the
next time the I call the macro. Any help would be much appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Stop Re-calculating Randbetween

Hi,

Generate your random numbers with a macro instead. Right click the sheet
tab, view code and paste this in:-

Sub sonic()
For x = 1 To 100
mynum = Int((100 - 1 + 1) * Rnd + 1)
Cells(x, 1).Value = mynum
Next
End Sub

This puts 100 random numbers between (1 & 100) in column A some will be
duplicated but they would with randbetween also.

Mike
"FredB" wrote:

I am developing some simple math questions for my son, and use Randbetween to
generate lists of number for him to do calculations upon. However if he
enters his answers into the spreadsheet, excel re-calculates and changes the
random number values in the math problem. I want to be able to keep the
random numbers, allow my son to enter his answers, use a formula to check
which answers are correct, and not change any of the random numbers until the
next time the I call the macro. Any help would be much appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Stop Re-calculating Randbetween

Thanks Mike H

It works a treat

"Mike H" wrote:

Hi,

Generate your random numbers with a macro instead. Right click the sheet
tab, view code and paste this in:-

Sub sonic()
For x = 1 To 100
mynum = Int((100 - 1 + 1) * Rnd + 1)
Cells(x, 1).Value = mynum
Next
End Sub

This puts 100 random numbers between (1 & 100) in column A some will be
duplicated but they would with randbetween also.

Mike
"FredB" wrote:

I am developing some simple math questions for my son, and use Randbetween to
generate lists of number for him to do calculations upon. However if he
enters his answers into the spreadsheet, excel re-calculates and changes the
random number values in the math problem. I want to be able to keep the
random numbers, allow my son to enter his answers, use a formula to check
which answers are correct, and not change any of the random numbers until the
next time the I call the macro. Any help would be much appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop re-calculating all cells? Eric Excel Discussion (Misc queries) 1 September 29th 07 02:58 PM
Formulas stop calculating brodiemac Excel Discussion (Misc queries) 3 November 7th 06 04:17 PM
Formulas stop calculating slc Excel Worksheet Functions 2 October 9th 06 06:14 AM
Stop calculating on open Daniel Bonallack Excel Worksheet Functions 7 February 19th 06 10:29 PM
stop a formula from re-calculating Becks Excel Discussion (Misc queries) 1 June 15th 05 03:34 PM


All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"