November 29th, 2002, 2:22 pm
I am 99% certain the even you want doesn't exist.I am 100% certain I could crack it in <30 seconds.Fact is that VBA code is stored in (nearly) clear text in the XLS.Microsoft Visual C++, and several other toolkits come with hex editors, which would allow any vaguely competent programmer to lift your code without even starting Excel, so no events can protect you. As you no doubt know, VC++ is about as rare as herpes.The sort of person who steals code, is going to know these tricks, but of course the converse is not true, I won't steal your code, honest I've done a very quick piece on bunging VB code into DLLs in the "1st steps to create dll with VBA " thread.Is there widespread demand for such a tutorial ?You're right testing/Debugging is more work, the trick here is to "understand" the MS DLL mindset. Thus when you debug a server DLL you have to tell MSVC or VB that you're debugging the client application, in this case Excel.Thus you can set breakpoints in the VBA environment and the VB one on what you might see as the same code.DominiConnor