I have created a macro and i want to share it with my friend.
And i don't want him to access the code.
I have created an add-in but it is not working when it is password protected. If i unlock and install , it is working but then my friend is able to access the codes.
In the chance that you did apply password to the VB, what is your add-in doing? Does it try to edit workbooks/VB or anything that might require a password itself?
i mean to say is if we lock vb code and then create addin from it and share that addin with other user. The other user is not able to install that addin until he put password to it.
My issue - i wish that other user should use that macro but i dont want to share password with him. Is there any way around ?
How is your user attempting to install the Add-in? They shouldn't need to be accessing the code at all. Should be from the Excel workbooks - File - Excel Options menu.b
You also didn't say if your add-in itself attempt to modify any code.
How is user attempting to run the add-in?