i haven't tried that. just as a little back ground i have a spreadsheet that i want people to only be able to edit certain areas. unfortunately, if they copy and paste the spreadsheet into a new spreadsheet all of my protection passwords are null and void. is there a way around this?
R9772,
The ability to copy the files is controlled by Windows (security features). If your customers want to work with some files you have not created then you will not be responsible for this activity. When they create a file (even by copy) then they will be responsible for whatever that file doing. Just put a warning label or message if you wish.
You could set up the workbook in the open event to test the path/filename. If it does not equal the original path/filename, then it just closes down.
So if it were saved with a different name OR renamed or copied, it could not be opened UNLESS macros were disabled.
In the case of macros disabled, you could use vba in the before save event to make a dummy sheet visible and make all other sheets VERY HIDDEN, such that opening without macros would render the workbook unviewable, and change the visible properties of the sheets in the workbook open event. Of course you would need to password protect the VBA project.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.