luckycharm
Board Regular
- Joined
- Sep 3, 2003
- Messages
- 88
This has been asked before (and answered), but somehow
does not work for me.
I put this code in 'this workbook':
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Cancel = True
End Sub
I have also seen it with this alteration (inserted correctly):
' If SaveAsUI Then
' End If
1. If the user disables macros - it doesn't work?!
2. Whats the diferrence between the original code and the alteration?
Thanks.
does not work for me.
I put this code in 'this workbook':
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Cancel = True
End Sub
I have also seen it with this alteration (inserted correctly):
' If SaveAsUI Then
' End If
1. If the user disables macros - it doesn't work?!
2. Whats the diferrence between the original code and the alteration?
Thanks.