Excel VBA Addin Licensing Tools

ttt123

Board Regular
Joined
May 31, 2006
Messages
120
Office Version
  1. 365
Platform
  1. Windows
Hello, I have an Excel Addin that I would like to distribute to clients, but I would like to protect the code and have licensing constraints like the number of computers it can be used on and the time duration it can be used.

I know that Excel's code protection is supposed to be pretty weak and that it can be easily hacked (is this still the case in Excel 2010)?

Are there any guides or can anyone offer any useful tips for creating licenses that can be used for a limited duration and only on a certain number of computers? Or if there are any good 3rd party apps that will do this.

I was thinking of writing my own vba code that could check against the system time for time constraints, license based on the drive serial number: DriveSerialNumber = CreateObject("Scripting.FileSystemObject").GetDrive("C:\").SerialNumber but if the VBA source code can be cracked, you don't really get much security on your licensing since someone could just view your licensing code and change it.

any suggestions would be greatly appreciate.
Thanks,
Taylour
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi mate

It's been discussed quite a few times before e.g. http://www.mrexcel.com/forum/showthread.php?t=67918&

VBA project protection is weak as you mentioned and Excel 2010 is no different. If you want proper security i.e. no source code distributed with your application then you might want to consider a COM-addin (which you can create using Visual Basic 6 or VB.NET) as these get compiled into executable files. Unfortunately you would need to modify your existing add-in code to do this (significantly if you use VB.NET, less so if you use the older VB6).


HTH
DK
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,314
Members
452,905
Latest member
deadwings

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top