解决方案是:
在工具-保护-保护工作表-设置密皮模码,把下面的勾选全取消,
工作表就不能修改,就是保燃肆缓存或另存为了也不能修改。
也可以用vb宏代码禁止:
在宏编辑器里的ThisWorkBook下写入代码:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Me.Saved = True
End Sub
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Cancel = True
End Sub
文件打开什么样雹洞子,关闭时将不会有任何变化。
在宏编辑器里的ThisWorkBook下凯吵竖写入代码:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Me.Saved = True
End Sub
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Cancel = True
End Sub
文件打开什么样子,盯大关闭时将不会碰颤有任何变化。