[FONT=Fixedsys][COLOR=black]Private Sub Workbook_Open()[/COLOR][/FONT]
[FONT=Fixedsys][COLOR=black][/COLOR][/FONT]
[FONT=Fixedsys][COLOR=black] If ThisWorkbook.FullName <> "[/COLOR][/FONT][URL="file://\\servername\sharename$\workbookname.xlsm"][FONT=Fixedsys][COLOR=black]\\servername\sharename$\workbookname.xlsm[/COLOR][/FONT][/URL][FONT=Fixedsys][COLOR=black]" Then
ThisWorkbook.Close SaveChanges:=False
End If
End Sub
[/COLOR][/FONT]