FAQ TBarCode OCX
Microsoft Excel - Licensing During Open
Microsoft Excel - Licensing During Open
Licensing happens during startup of the document which contains the ActiveX® Control.
- Open the Microsoft VBA editor with Alt+F11.
- In the Project Explorer select This Workbook.
- Now enter the following code as for the Workbook-Open Event (sample for TBarCode OCX V11):
Private Sub Workbook_Open()
Dim tbc As TBarCode11
Set tbc = CreateObject ("TBarCode11.TBarCode11")
tbc.LicenseMe "Mem:Licensee", eLicKindDeveloper, 1, "Key", TBarCode11Lib.eLicProd1D
Set tbc = Nothing
End Sub
We recommend to password protect your VBA code in the project property window.