1.

Solve : Word 2003-Macros in Protected Document?

Answer»

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
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.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 Quote from: soybean 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 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.


Discussion

No Comment Found