K
Keith Emery
I am using this code to turn off all save options when a
spread sheet opens. (Stupid end users keep saving in the
wrong places)
**********************************************************
Sub EnableSave(Enable As Boolean)
Dim myCmd As Object
Set myCmd = CommandBars("Worksheet menu
bar").Controls("File")
myCmd.Controls("Save").Enabled = Enable
Set myCmd = CommandBars("Worksheet menu
bar").Controls("File")
myCmd.Controls("Save As...").Enabled = Enable
Set myCmd = CommandBars("Standard")
myCmd.Controls("&Save").Enabled = Enable
End Sub
********************************************************
However, it would be better if this only affected the
workbook, nott the instance of Excel as sometimes the
sheet is left open in the background.
Is there a way of disabling save for specific workbooks?
spread sheet opens. (Stupid end users keep saving in the
wrong places)
**********************************************************
Sub EnableSave(Enable As Boolean)
Dim myCmd As Object
Set myCmd = CommandBars("Worksheet menu
bar").Controls("File")
myCmd.Controls("Save").Enabled = Enable
Set myCmd = CommandBars("Worksheet menu
bar").Controls("File")
myCmd.Controls("Save As...").Enabled = Enable
Set myCmd = CommandBars("Standard")
myCmd.Controls("&Save").Enabled = Enable
End Sub
********************************************************
However, it would be better if this only affected the
workbook, nott the instance of Excel as sometimes the
sheet is left open in the background.
Is there a way of disabling save for specific workbooks?