Find Replace Form Field with text using Code

F

Fred

Using Forms Toolbar can you replace the formfield whose text name is [1]
with replace text
THIS IS THE REPLACE TEXT in template or document.

I have tried ^19 and ^d .

Can I select the field by some method - name or bookmark and delete it and
replace with text from a table?

Many thanks.
 
D

Doug Robbins - Word MVP

With the document protected for forms, you could run a macro that used the
..Result property of each formfield to cause it to display the information
from the table, then the macro could unprotect the document and unlink all
of the formfields so that the data contained in the formfield was converted
to ordinary text.

--
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
 
F

Fred

Will try it.
Doug Robbins - Word MVP said:
With the document protected for forms, you could run a macro that used the
.Result property of each formfield to cause it to display the information
from the table, then the macro could unprotect the document and unlink all
of the formfields so that the data contained in the formfield was
converted to ordinary text.

--
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

Fred said:
Using Forms Toolbar can you replace the formfield whose text name is [1]
with replace text
THIS IS THE REPLACE TEXT in template or document.

I have tried ^19 and ^d .

Can I select the field by some method - name or bookmark and delete it
and replace with text from a table?

Many thanks.
 

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