Implementation into excel vba

After searching many licencing options LimeLM appears the way to go.

Only problem is I am an amateur programmer and dont fully understand how to intergrate the code in excel. Do I include a sub on workbook open that calls the function Isgenuine? If so how would it look? is there a example spreadsheet I could download. I have imported the .bas but not sure where to go from here.

Running office 365.

Thanking you in advance.Anton

Hey Anton,

This article covers is pretty well: Using TurboActivate with Visual Basic for Applications (VBA).

The first step is to include the TurboActivate.bas into your VBA application.

Then, before a customer can use your app use the IsActivated() or IsGenuineEx() function to see if the customer has activated your app.

Does that make sense?

Yes underway. Only problem is that It worked once now it has stopped.

I am using the IsGenuineEx() function.

I am getting a runtime error 48 on the turboactivate.dll.Filepaths point to the correct location.

I am using the excel office 365 32 bit version with the 32 bit version of the dll.Windows is however win 7 64 bit.

Might try the 64 bit of office.

Anton

I am getting a runtime error 48 on the turboactivate.dll.

Where did you put the TurboActivate.dll? The runtime error 48 just means that VBA can't find the DLL to make whatever the call was.

So, follow the article (Using TurboActivate with Visual Basic for Applications (VBA)), specifically the section titled "Modify the GetTADirectory() function"