Results 1 to 3 of 3

Thread: Random Unique Number

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    England
    Posts
    234

    Random Unique Number

    Hi,

    I need to generate a unique "ticket" number for a user in excel

    they are completing a userform, and their responses are written to a central workbook.
    the users will be placed in to a draw, so they will be given this unique ticket number.

    the thing is, i must not be able to link this ticket number to the responses as they are to be confidential.

    does anyone know of a way to do this, i was thinking of writing to the responses workbook
    but again i could work this back to where the individual is located.

    Thanks

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Random Unique Number

    the thing is, i must not be able to link this ticket number to the responses as they are to be confidential
    Wha...?

    Confidential to whom? If confidential to all then no-one is going to read -ergo no need to store.
    In Excel?
    Relational - ie dump in a db?


    If you have to use Excel, try this:
    Userform - Data Entry -> contact detail (search for existing if more than one feedback) + entry of response
    Userform - Search - contact info - for draw result
    SheetOfContactDetails (Hidden ?)
    SheetOfResponsesWithContactID (hidden sheet)
    As to who can see - protect the sheet that is hidden or the workbook. Read up on security with Excel.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Location
    England
    Posts
    234

    Re: Random Unique Number

    done this using a unique number generator i found on google

    i then had an array of cells numbered from 1-1000
    the code will loop until it finds an unused number (i change the cell interior once used)

    works fine, as approx 600 people will use this

    thanks anyway

    oh an a db would be overkill for this

Posting Permissions

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



Click Here to Expand Forum to Full Width