How to copy formfield without onexit macro

S

Sasha

Is there a way to copy a formfield without copying the
onexit macro. Currently when I copy the formfield and
paste it somewhere else using VBA it copies the text,
which is what I want, but it also copies the onexit macro,
which I don't want. Anybody know how to do this? Thx.
 
C

Cindy M -WordMVP-

Hi Sasha,

I think the answer is yes, but it's hard to be sure without
knowing more about the form document and your code. Version
of Word wouldn't hurt, either :)

My concerns:
1. Is there a very specific reason you're copying, rather
than taking the information from the field result? You say
you want the text, not the field, correct?

2. For the copying process to be carrying over the field, the
form document is unprotected? Do you have a specific reason
for working with an unprotected form?
Is there a way to copy a formfield without copying the
onexit macro. Currently when I copy the formfield and
paste it somewhere else using VBA it copies the text,
which is what I want, but it also copies the onexit macro,
which I don't want. Anybody know how to do this? Thx.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.mvps.org/word

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