Macro in a protected Word Template

B

Bullocj1

I'm running Word 98, and am having some difficulties with macros. I'
building a word template which includes various form fields. I'v
added a macro to a check box that will trigger when checked to insert
page break, and then insert a file, but I'm receiving a run time erro
of 4605 because the template is protected. Is there anyway to stil
have the macro built this way?

Thank
 
D

Doug Robbins - Word MVP

You will have to incorporate commands in your code to unprotect the document
and then reprotect it after the Page Break has been inserted.

I assume that by Word 98 you really mean Word 97 and for that version, make
sure that you add the NoReset flag to the command to protect the document to
prevent the formfields from being reset (data deleted).

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top