spurs
Active Member
- Joined
- Oct 18, 2006
- Messages
- 479
- Office Version
- 2016
- 2013
- 2010
- 2007
- 2003 or older
- Platform
- Windows
I want to incorporate into my VBA code a check to make sure that the computer that the VBA code is being run on is authorized for use.
Is there a unique serial number - that VBA can access to verify that the computer being used is in fact authorized for use? - Possibly a serial number that identifies a specific drive, or motherboard or some other feature? My plan would be that this number would be hard coded into the VBA code and everytime the program is run, it would shut down if the number does not match the allowable number.
Is there a down side to this approach? I am writing code that is to be used on only a handful of authoized computers, and I am trying to prevent the code from being used malicously elsewhere.
What is the VBA code that is needed to get this number from a system?
Is there a unique serial number - that VBA can access to verify that the computer being used is in fact authorized for use? - Possibly a serial number that identifies a specific drive, or motherboard or some other feature? My plan would be that this number would be hard coded into the VBA code and everytime the program is run, it would shut down if the number does not match the allowable number.
Is there a down side to this approach? I am writing code that is to be used on only a handful of authoized computers, and I am trying to prevent the code from being used malicously elsewhere.
What is the VBA code that is needed to get this number from a system?