• Toolbar buttons unavailable… (WD97)

    Author
    Topic
    #378305

    I have a template that uses outline numbering, so as part of my toolbar in included the Promote, Demote, MoveUp, and MoveDown buttons. Actually, I customized MSO’s word commands to run an error check before completing their action. … The other factor here is that my document is form password protected for section 1 (Cover Page). When I protect section one, the toolbar buttons disable. What can I do to prevent this?

    I’m thinking that I should be able to “enable” the toolbar for other sections of the document….. HELP!
    -Jody

    Viewing 0 reply threads
    Author
    Replies
    • #625774

      You will have to create macros that
      (1) Unprotect the doc
      (2) Promote or demote etc. the selection
      (3) Protect the document for forms again

      For example:

      Sub DemoteProtected
      ActiveDocument.Unprotect
      Selection.Paragraphs.OutlineDemote
      ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True
      End Sub

      If you have set a password, add a Password:=”MyPassword” argument to both the Unprotect and Protect instruction.

      You will have to assign these macros to custom toolbar buttons.

      • #625926

        But the buttons aren’t even available for the user to click on when the document is protected. The buttons greyed out automattically.

        • #625962

          Yep, that’s why I wrote that you have to create custom command buttons that call a macro. The built-in buttons are disabled for protected documents, but custom buttons aren’t.

    Viewing 0 reply threads
    Reply To: Toolbar buttons unavailable… (WD97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: