» 
Disable button in only ONE instance of word.
I have a document that I use to log phone calls. I have now accidently clicked on the Print button instead of the Save button. So I wrote the following code to disable that button. (No more WASTE of 50 pages)
Public Sub Document_Open()
Application.ActiveDocument.CommandBars.FindControl (Type:=msoControlButton, ID:=CommandBars("Standard").Controls("Print").ID). Enabled = False
Application.ActiveDocument.CommandBars.FindControl (Type:=msoControlButton, ID:=CommandBars("Standard").Controls("Print").ID). TooltipText = "No Printing allowed in this document!"
End Sub
This does what I want, however, this does it in ALL instances of Word.
How do I get it to happen ONLY in that document?
Thank you.
|