Is there a way to prevent a workbook from being saved in the .xlsx format?
I've had 3 employees already save a .xls workbook to .xlsx and obliterate the VBA project - all the code is deleted. They either ignore the warning dialog boxes or just don't understand the significance of the message.
I have the workbook save on close now with this:
[vba]Private Sub Workbook_BeforeClose(Cancel As Boolean)
'Hide Sheets on close to require macros be enabled when workbook opened
Call HwkstCO15
With Application
.DisplayAlerts = False
ThisWorkbook.Saved = True
.DisplayAlerts = True
End With
End Sub[/vba]
The HwkstCO15 macro hides all but one sheet and concludes with:
[vba]With ThisWorkbook
.Protect , Structure:=True, Windows:=False
.Save
End With[/vba]
Thanks,
Ron