Excel Err Msg: "Error Locating Support File..." with RANDOM()ID: Q96636
|
In Microsoft Excel, you can use the RANDOM() function (available in the Analysis ToolPak add-in macro), to generate a set of random numbers. When you use this function in a macro, if you leave any of the optional arguments (variables, points, or seed) blank, you will receive the following error message:
An error has occurred locating a support file or processing data for an add-in procedure.
Using the RANDOM() function in a macro produces the same results as
choosing Analysis Tools from the Options menu and selecting Random
Number Generation from the list of available tools. Using the Options
menu method, it is not necessary to specify a value in the Random Seed
box. Microsoft Excel still generates a set of random numbers.
In the RANDOM() function, the variables argument specifies the number
of columns in the output range, the points argument specifies the
number of rows in the output range, and the seed argument specifies an
offset value used in determining which random numbers to retrieve. You
must specify a value for each of these arguments when you use RANDOM()
in a macro.
For this argument Use this value
-----------------------------------------
Variables COLUMNS(range)
Points ROWS(range)
Seed INT(RAND()*number) or any positive integer.
=RANDOM(cell,COLUMNS(range),ROWS(range),1,INT(RAND()*number),10,20)
function using 5 and INT(RAND()*10) for the seed argument:
A1: Test
A2: =RANDOM(OFFSET(ACTIVE.CELL(),0,0,5,2),2,5,1,5,10,20)
A3: =RANDOM(OFFSET(ACTIVE.CELL(),6,0,5,2),2,5,1,
INT(RAND()*10),10,20)
A4: =RETURN()
"Online Help," version 5.0
"Function Reference," version 4.0, pages 345-346
"User's Guide 2," version 4.0, pages 38-40
Additional query words: 4.00a optional argument error random analysis tool pack pak
Keywords :
Version : 4.00 4.00a 5.00
Platform : WINDOWS
Issue type :
Last Reviewed: March 30, 1999