How can I create a copy and paste macro in a protected Word Form?

D

Dantrickillac

I have created a form using MS Word with tables text fields and check boxes.
I have sections of the form that may need to be duplicated for some people
and not for others. I am looking for a way to (hopefully) create a checkbox
that will allow the user of the form to check it and duplicate section will
appear. I would like the header to remain the same, but the footer to have
the next page number, but this is not necessary if it is not possible to
create. The fields in the section that is being copied and pasted will not
have any of the same information as the fields from the section being I need
created, so the REF does not work in my situation. I can create this macro
when the form is unprotected, but once the form is protected the macro no
longer works. Can anyone offer me some help or guidance? It would be much
appreciated.
 
C

Cindy M.

Hi =?Utf-8?B?RGFudHJpY2tpbGxhYw==?=,
I have created a form using MS Word with tables text fields and check boxes.
I have sections of the form that may need to be duplicated for some people
and not for others. I am looking for a way to (hopefully) create a checkbox
that will allow the user of the form to check it and duplicate section will
appear. I would like the header to remain the same, but the footer to have
the next page number, but this is not necessary if it is not possible to
create. The fields in the section that is being copied and pasted will not
have any of the same information as the fields from the section being I need
created, so the REF does not work in my situation. I can create this macro
when the form is unprotected, but once the form is protected the macro no
longer works. Can anyone offer me some help or guidance? It would be much
appreciated.
To achieve this, you need to add code to the macro that unprotects the
document, then reprotects it. You'll find the basic commands for these two
actions in the "forms" section of my website.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
D

danieljhart

Hi =?Utf-8?B?RGFudHJpY2tpbGxhYw==?=,


To achieve this, you need to add code to the macro that unprotects the
document, then reprotects it. You'll find the basic commands for these two
actions in the "forms" section of my website.

Cindy Meister
INTER-Solutions, Switzerlandhttp://homepage.swissonline.ch/cindymeister(last update Jun 17 2005)http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)


Cindy, your help is much appreciated and the protect/unprotect worked
great. I am having trouble copying and pasting the exact text that I
need to after I protect and unprotect it. I am trying to copy the
previous 2 pages of the document and then pasting them into the
document. How do I do this? I can't figure out how to make this
happen. Any help you can give me is much appreciated.
 
C

Cindy M.

I am having trouble copying and pasting the exact text that I
need to after I protect and unprotect it. I am trying to copy the
previous 2 pages of the document and then pasting them into the
document. How do I do this?
Are these always the same two pages, or could "the previous two
pages" be different pages, depending on where the user is working?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17
2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 

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