Hi. I've developed a workbook which i pretend to sell. Its a very complex workbook which has more than 700 worksheets and a lot of work invested. Has more than 100 macros across and i manage to establish a trial period based on this code:
Please Login or Register  to view this content.
This code above creates a log file that the macro uses at the opening to check if the file has trial period or not. What i need now is a code similar that creates a log file with the machine ID so then when this workbook opens checks if the machine id matches the one in the log file and if so let it open. Case not closes it right away. The log file stays hidden somewhere in the hard drive with a name i create (instructed in the vba code like the code above).

Is this possible to do?