I know this bulletin board is for Access database programming, but the level and quality of the information here is better than anywhere else I've seen, so I thought I would post my question here, even though it pertains to an MS Word Macro.
I am working on a document that contains numerous macros that link to other documents and imports them into a main document. The main document is an MS Word form that is normally protected (so that all you need to do is tab between text boxes, etc.)
Anyway, when you import this one particular section, depending on the previous section you had imported, the document can either be protected or unprotected.
What I need is a little script/macro with an if/then statement, but I am uncertain on how this is written.
Example: If ActiveDocument=Protect then ActiveDocument=Unprotect else null
Thanks in advance for any help and again, I deeply apologize for posting an MS Word question on the MS Access board, but you guys are the best.
I am working on a document that contains numerous macros that link to other documents and imports them into a main document. The main document is an MS Word form that is normally protected (so that all you need to do is tab between text boxes, etc.)
Anyway, when you import this one particular section, depending on the previous section you had imported, the document can either be protected or unprotected.
What I need is a little script/macro with an if/then statement, but I am uncertain on how this is written.
Example: If ActiveDocument=Protect then ActiveDocument=Unprotect else null
Thanks in advance for any help and again, I deeply apologize for posting an MS Word question on the MS Access board, but you guys are the best.