Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Word 2003-Macros in Protected Document  (Read 3392 times)

0 Members and 1 Guest are viewing this topic.

Mogadeet

    Topic Starter


    Newbie

    Word 2003-Macros in Protected Document
    « on: June 25, 2009, 06:56:05 AM »
    I have a template that must be protected, with "Fill in Forms" permitted.  It is usually a single page but on occasion must be 2 or 3 pages.
    Each page must be identical to the first, including form entry fields.
    I have a macro that copies the page, inserts a page break, then pastes the page on the newly created 2nd page.  I have a toolbar button attached to the template that works perfectly.
    It works faultlessly when the template is unprotected.  It does not work at all when the document is protected.
    Setting Formatting Restrictions to permit Macro Text has no effect.
    How do I protect this template and still have the macro run when required?

    Mogadeet

    soybean



      Genius
    • The first soybean ever to learn the computer.
    • Thanked: 469
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows 10
    Re: Word 2003-Macros in Protected Document
    « Reply #1 on: June 25, 2009, 08:38:02 AM »
    Can you modify the Macro so that it unprotects the document, runs the main part of the macro, and then re-protects the document?  I don't know whether that can be done within a macro, just a thought.
    « Last Edit: June 25, 2009, 11:47:37 AM by soybean »

    Mogadeet

      Topic Starter


      Newbie

      Re: Word 2003-Macros in Protected Document
      « Reply #2 on: June 25, 2009, 08:59:15 AM »
      I gave it a try and it wouldn't let me do it.  It may be lack of skill on my part, or that's something that you can't do.

      Mogadeet :||x

      Rob Pomeroy



        Prodigy

      • Systems Architect
      • Thanked: 124
        • Me
      • Experience: Expert
      • OS: Other
      Re: Word 2003-Macros in Protected Document
      « Reply #3 on: June 25, 2009, 11:16:41 AM »
      Can you modify the Macro so that it unprotects the document, runs the main part of the macro, and then re-protects the document?  I don't whether that can be done within a macro, just a thought.

      I have a vague memory that I attempted this many years ago and that it couldn't be done...  Might be wrong.
      Only able to visit the forums sporadically, sorry.

      Geek & Dummy - honest news, reviews and howtos