Hello,
It's been a while, but I have previously added VBA code to an Excel project via VB.
What I am now seeking is guidance on how to protect, via a password, the Project code, from within VB.
I have found the Protection property of the VBComponent within the "Microsoft Visual Basic for Applications Exrtensibility 5.3" object, only, it is a read only property.
Does any one know if there is a method available to protect the VBA code?
I need to put a DB Super User username & password in the code & obviously want it relatively safe.
I can't lock the code manually, since the password is going to change over time, hence the dynamics.
Thank you in advance for any suggestions.
Peter.
Excel 2002
It's been a while, but I have previously added VBA code to an Excel project via VB.
What I am now seeking is guidance on how to protect, via a password, the Project code, from within VB.
I have found the Protection property of the VBComponent within the "Microsoft Visual Basic for Applications Exrtensibility 5.3" object, only, it is a read only property.
Does any one know if there is a method available to protect the VBA code?
I need to put a DB Super User username & password in the code & obviously want it relatively safe.
I can't lock the code manually, since the password is going to change over time, hence the dynamics.
Thank you in advance for any suggestions.
Peter.
Excel 2002