LockXLS allows to get registration information about locked workbook using VBA macro. For example this code shows, was Activation Code entered, or not:
Method LockXLSRuntime.GetActivationInfo( <workbook>, <option> ) may receive the following options:
Method LockXLSRuntime.IsWorkbookActivated( <workbook> ) returns True if this workbook has been successfully activated. This is same function as GetActivationInfo with "registered" option.
Method LockXLSRuntime.IsWorkbookLocked( <workbook> ) returns True if this workbook object represents workbook protected with LockXLS. You can use this method to distinguish locked and unlocked versions of your workbooks.
Method LockXLSRuntime.GetComputerCode( <options> ) returns Computer Code for this PC. Possible such values for options:
You can use this technique to limit functinality of your workbook during trial period. If GetActivationInfo function with registered option returns FALSE - you workbook is in trial period.
This example shows how to access Serial Number and Customer ID:
See Also
All methods of the LockXLS Runtime object
Review Runtime Functions example which shows usage of these macros