In my application, the user needs control of the seed of a pseudo-random number generator (PRNG). I implemented the RAND() function as a UDF in VBA. It works fine in single-step (F8) but results in #VALUE! when invoked from the spreadsheet. I cannot figure out why! Here's the code:
<o:p></o:p>...