Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling TRK button in Word statusbar. 1

Status
Not open for further replies.

JBU

Instructor
Nov 3, 2003
25
IN
Hi

I would like to disable the TRK button in the statusbar in Word, so that it can't be used for turning track changes on or off. Is that possible at all?

Jens Busse
Workflow Consultant
CCI Europe A/S
 
Someone will possibly prove me wrong, but I don't think so. Why do you want to do this? A user could just use the menu to do the same thing. Or are you going to remove that?

This being said, you CAN rewrite the Track Changes toggle procedure. If you do that, then yes, the user can not toggle with the TRK button...but they can not use the menu either.
Code:
Sub ToolsRevisionMarksToggle()
    'Overrides the Tools Track Changes command
  '  MsgBox "Track Changes toggle is not permitted."
End Sub
Having an empty Sub will make nothing happen when the user tries to toggle Track Changes - either with the TRK button, or the menu (Tools > Track Changes). May be nice to have a message though.


Gerry
 
Thanks Gerry

Works perfectly. Yes we are going to remove all other ways of turning track changes off. This is excellent.

Jens Busse
Workflow Consultant
CCI Europe A/S
 
Be careful here. Remember that this also disables being able to turn it on! You will need to turn it on before you put the Sub in the file. OR, what I do for some of my files:
Code:
Sub ToolsRevisionMarksToggle()
If Environ("username") = "Gerry" Then
  ActiveDocument.TrackRevisions = Not ActiveDocument.TrackRevisions
Else
    MsgBox "Track Changes toggle not permitted."
End If
End Sub
That way I can do it, but no one else can.

Gerry
 
Thanks for the warning, but fortunately we are using our own functionality for tracking changes (with customized names), so disabling ToolsRevisionMarksToggle altogether isn't a problem.

Jens Busse
Workflow Consultant
CCI Europe A/S
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top