Hello!

What would be the code in an Add-in to prevent a file that opens automatically in read-only mode to be edited?

I came up with this code but it has to be pasted in all files that I want to protect:

Please Login or Register  to view this content.
My idea is to create an Add-in and install it in all computers with Excel 2007.

Thank you for yuor help!