View Single Post
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Word 2007 single-click protect/unprotect document

The button you can add to the Quick Access Toolbar that's equivalent to the
lock icon from the Word 2003 Forms toolbar is in the Commands Not in the
Ribbon group, named Protect Document without the ellipsis; the tooltip
includes the notation "(ProtectOrUnprotectDocument)".

The drawback to this is that MS never got around to giving this button a
specific icon, so it shows up with the generic green circle icon that can't
be changed.

To work around this, add the following macro to Normal.dotm (see
http://www.gmayor.com/installing_macro.htm if needed):

Sub FormProtectDocument()
With ActiveDocument
If .ProtectionType = wdNoProtection Then
.Protect Type:=wdAllowOnlyFormFields
Else
.Unprotect
End If
End With
End Sub

Now you can add a button for this from the Macros section of the Customize
dialog, and you can click the Modify button to enable you to change the
display name (tooltip) to "Protect Document" and choose an icon -- and the
lock icon is available there.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


Suzanne S. Barnhill wrote:
Have you looked at the Customize options? In the Developer Tab (or All
Commands) section there are Protect Document and Protect Document...
commands.


"Mike55" wrote in message
...
In Word 2003 there was a document protect button that was a
single-click way
to protect/unprotect a document - specifically a form. In Word 2007,
there
are menus and buttons in the developer toolbar to protect/unprotect a
document, but there isn't a way (that I have found) to add a
single-click button to the quick access toolbar to toggle document
protection. Is there a single-click button (toggle) to add to the quick
access
toolbar to protect/unprotect a document/form so I don't have to go
through the developer button/menu system?

Thanks,
Mike