Word 2007 single-click protect/unprotect document

M

Mike55

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
 
S

Suzanne S. Barnhill

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

Jay Freedman

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
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
B

Bob Buckland ?:-\)

Hi Mike,

Under Office Button=>Word Options=>Customize=>All Commands
add the 'Lock' command to the Quick Access Toolbar.

============
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 >>
--

Bob Buckland ?:)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*
 
J

Jay Freedman

Ignore this... use Bob Buckland's response instead. Somehow I managed to
overlook the Lock command. Not only is it simpler to add to the toolbar, but
it has the advantage that the icon shows whether it's on or off.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
G

Greg Maxey

Or you can avoid adding another button to the QAT and add the command to the
ribbon with the following RibbonX script:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab idMso="TabDeveloper">
<group idMso="GroupProtect" visible="false" />
<group id="CustGroupProtect" label="Protect"
insertBeforeMso="GroupTemplates" >
<menu idMso="ReviewProtectDocumentMenu" size="large" />
<toggleButton idMso="Lock" size="large" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>

See: http://gregmaxey.mvps.org/Customize_Ribbon.htm
 
S

Suzanne S. Barnhill

I also missed the Lock command (frustrating that MS felt a need to rename
it, but I guess that does make sense). It's especially useful to have that
on the QAT since it's NOT in the Legacy Forms palette.
 
G

Greg Maxey

How long will it take before the average users QAT looks like pea soup ;-)

You can have the classic protected form controls on your ribbon using the
following RibbonX script:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab idMso="TabDeveloper">
<group id="FormGroup" label="Classic Form Controls"
insertBeforeMso="GroupXml">
<box id="box1" boxStyle="horizontal">
<button idMso="FormControlEditBox" showLabel="false"/>
<button idMso="FormControlCheckBox" showLabel="false"/>
<button idMso="FormControlComboBox" showLabel="false"/>
</box>
<box id="box2" boxStyle="horizontal">
<button idMso="FormFieldProperties" showLabel="false"/>
<toggleButton idMso="TableDrawTable" showLabel="false"/>
<button idMso="TableInsertDialogWord" showLabel="false"/>
</box>
<box id="box3" boxStyle="horizontal">
<button idMso="FrameInsertHorizontal" showLabel="false"/>
<toggleButton idMso="FieldShading" showLabel="false"/>
<button idMso="FormFieldReset" showLabel="false"/>
</box>
<toggleButton idMso="Lock" showLabel="false" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
 
G

Graham Mayor

Nice one!

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

Ask a Question

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.

Ask a Question

Top