Don't forget the shortcut Ctrl-S (application.onkey)
Sub menuItem_Enabledfalse()
Dim a As Integer
On Error Resume Next
For a = 1 To Application.CommandBars.Count
For Each ctl In CommandBars(a).Controls
Application.CommandBars(a).FindControl(Id:=3, Recursive:=True).Enabled = False
Next ctl
Next a
End Sub
Sub menuItem_Enabledtrue()
Dim a As Integer
On Error Resume Next
For a = 1 To Application.CommandBars.Count
For Each ctl In CommandBars(a).Controls
Application.CommandBars(a).FindControl(Id:=3, Recursive:=True).Enabled = True
Next ctl
Next a
End Sub
This might not do what you want, but you could use a
password for editing on the file. If someone doesn't have
the password, they can't save the file with the same
name. They can save it under another name, tho.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.