Results 1 to 2 of 2

Problem with random code generation

Threaded View

  1. #1
    Registered User
    Join Date
    12-18-2003
    Posts
    26

    Problem with random code generation

    Hi!

    I have two files. One file contains products (Product.xls) and another file (Requests.xls) contains information about customers which select product with randomly generated code. When I input data in new row all OK. But if I add new column excel automatically recalculate randomly generated codes.

    Please help me to correct this issue.
    All files attached.

    I use function Static_RAND :
    Function Static_RAND(Lower As Double, Upper As Double) As Double
    'Returns a random number which doesn't change when recalculated
    'Between Lower and Upper (INCLUSIVE)
    Static_RAND = Int((Upper - Lower + 1) * Rnd + Lower)
    End Function
    Attached Files Attached Files
    Last edited by Oleg; 04-04-2011 at 06:47 AM.
    Oleg

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1