Well, mmm, if macros aren't enabled for this workbook, it doesn't matter what code you have, it won't run. So easy: macros not enabled = code doesn't run.
What that means is that you need to make your workbook unusable unless macros are enabled. That, in turn, means hiding all the data worksheets and displaying a "Splash Screen" saying something like: "please enable macros to use this workbook". Then you can have code to try to prevent people from saving it or doing things with it you don't want them to.
Being realistic, most preventative measures will only stop some people. Anyone with an interest in Excel and VBA, and access to the Internet, will be able to remove or work around most protection.
Regards, TMS
Bookmarks