If a programmer doesn't wish to make modifies to the document he can lock the document data and its code from more changes by changing the extension of the file system to .MDE. Changes can be made only to the file with an extension MDE. Tools are there in the market which can unlock and decompile the code but some changes to VBA or VB scripts are irreversible.