You can't really stop someone who knows what they are doing from doing these things, but you can make it inconvenient.
1. Prevents deletion of my entire workbook
This can't be controlled by Excel or VBA - you'd have to talk to your network administrator about access rights.
2. Prevents cut/copy and paste of the workbook
This can be done - code below:
Put this into ThisWorkbook
and this into a standard module
3. Runs a code, preventing design mode from being accessed in others' computers.
Don't think this is possible.
4. Makes sure that where the location that they open the workbook from is not changed (i.e. not copied location)
You can add something like this to Workbook_Open (the reason you are getting the Ambiguous name detected error is your code has two Workbook_Open sections - you can only have one.)
In addition to doing this, you should hide all sheets (except one that says you have to enable macros) on close, so that when opened, if macros are not enabled, nothing in the spreadseet is visible, except the message that you need to enable macros. If macros are enable, unhide all sheets and hide the one that says macros have to be disabled.
Bookmarks