Hi all,
I am new to the forum. Excel's security isn't very robust. Even if I password protect the VBA code I've written, it could be easily cracked. Therefore, I would like to improve security of the code by "porting" the Excel VBA code I've written into a DLL or XLL file.
Right now my spreadsheet is entirely automated by VBA. I'd like to rewrite the VBA code so that it basically only calls up the DLL/XLL. The DLL/XLL, which would contain the majority of the code, would then execute the applicable subroutines/functions requested by the user. This would hopefully improve the security and make it easier for me to maintain since all I would need to do is update/modify the DLL/XLL file, not the spreadsheet.
THE PROBLEM:
I have never created a DLL/XLL before and I'm not experienced in VB, C++, etc (only Excel VBA), so I need a little guidance on the following:
1. Is the approach I've described the best approach to maximize code security? If not, what would you recommend?
Assuming the DLL/XLL approach is best,...
2. What is the Excel VBA command(s) needed to call up the DLL/XLL?
3. What commands are needed within the DLL/XLL file to communicate with/control the Excel spreadsheet?
4. Can I copy and paste the Excel VBA code I've written "as is" into the DLL/XLL or do I need to convert it to VB in order for it to work?
5. Do I need to manually add the DLL/XLL as a Reference or can it all be done programmatically without needing an explicit reference (preferred)?
My VBA skills are only at an intermediate level, so it would be helpful if you would provide examples or err on the side of being detailed in your response so I don't have to ask too many follow-up questions. :-)
Thank you in advance for your help!
CK
Bookmarks