Hi

I use 'workbook_open' and 'beforesave' functions in "Thisworkbook" module both to force save format at xlsm and also to check for the presence of a security device (keylok).

The probem is I've discovered by chance that "Thisworkbook" can be effectively disabled by opening and saving a workbook with the following "Thisworkbook" function:

PHP Code: 
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As BooleanCancel As Boolean)
Application.EnableEvents False
Application
.DisplayAlerts False
ActiveWorkbook
.Close True
End Sub 
The issue seems to be something to do with the loop created by saving within the beforesave function. My question is whether I can prevent such a function being used to disable the beforesave etc functions within my workbooks?

Any advice would be gratefully received.