I'm using this Workbook's SaveSheet event to prevent users from adding a new sheet from within my main workbook file. OK, that's half the goal.
But that event isn't triggered if user tries to copy/move a sheet from another WB into my main file.
I've started looking at a workbook lock/protect setting but we have numerous procedures that add temp sheets in workbook for data sheets, charts, etc. So, if I do something like lock or protect the workbook, we have to find each such instance when sheets are added, changed, deleted and possible add code to unlock/unprotect, add sheet, relock/protect each time. This isn't ideal.
Any suggestions for how to prevent users from copying/moving a sheet into the main workbook?
But that event isn't triggered if user tries to copy/move a sheet from another WB into my main file.
I've started looking at a workbook lock/protect setting but we have numerous procedures that add temp sheets in workbook for data sheets, charts, etc. So, if I do something like lock or protect the workbook, we have to find each such instance when sheets are added, changed, deleted and possible add code to unlock/unprotect, add sheet, relock/protect each time. This isn't ideal.
Any suggestions for how to prevent users from copying/moving a sheet into the main workbook?