Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Toolbar buttons unavailable... (WD97)

    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

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Toolbar buttons unavailable... (WD97)

    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.

  3. #3
    3 Star Lounger
    Join Date
    Jul 2002
    Location
    Edison, New Jersey, USA
    Posts
    215
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: Toolbar buttons unavailable... (WD97)

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

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Toolbar buttons unavailable... (WD97)

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •