Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I sell an Excel worksheet and need to protect it with a unique serial number that is provided separately to each customer upon purchase (i.e., each customer gets a unique number). How can a procedure be implemented in VBA to validate serial numbers and to block randomly generated numbers by non-subscribers? For customer convenience, the number should be around 6 characters long. Ideally, that procedure will validate the serial number without having to index it against a huge database of valid numbers stored somewhere in the sheet. Web connectivity, to tap into a central server for number validation, cannot be assumed. In a nutshell, what is needed is something akin to serial numbers used to protect commercial software. Any help is appreciated. alseikhan -- Alseikhan ------------------------------------------------------------------------ Alseikhan's Profile: http://www.excelforum.com/member.php...o&userid=32364 View this thread: http://www.excelforum.com/showthread...hreadid=530797 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is an interesting problem. Have you considered a combination of
digits limited in their range, something like: Digit 1: can only be 1 or 0 Digit 2: can only be 3 - 7 Digit 3: can only be 4 - 8 and so on. Then use the VBScript Regular Expressions library or write your own parser to confirm the rules have been met. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It shouldn't be too difficult to make a number that can be validated without
a database, but where will the code be that validates the number? As mentioned many times in this NG the security of Excel is not very good. Maybe this needs to be tackled first. RBS "chillihawk" wrote in message ups.com... This is an interesting problem. Have you considered a combination of digits limited in their range, something like: Digit 1: can only be 1 or 0 Digit 2: can only be 3 - 7 Digit 3: can only be 4 - 8 and so on. Then use the VBScript Regular Expressions library or write your own parser to confirm the rules have been met. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
generate serial numbers and date it entered | Excel Discussion (Misc queries) | |||
automatically generate unique serial numbers for invoices | Excel Worksheet Functions | |||
How can excel generate every unique pair from a set of numbers? | Excel Worksheet Functions | |||
generate unique random numbers | New Users to Excel | |||
generate serial number | Excel Worksheet Functions |