FormField

C

colem

I have linked text to a FormField on my document and it changes when I
manually change the selected item of the FormField. However, when I change
the item in a Macro like so it doesn't change the linked text to match:

ActiveDocument.FormFields("PortfolioAnalyst").Result = PersonSelected

Has anybody ever dealt with this before? Thanks!
 
D

David Sisson

I have linked text to a FormField on my document and it changes when I
manually change the selected item of the FormField.  However, when I change
the item in a Macro like so it doesn't change the linked text to match:

ActiveDocument.FormFields("PortfolioAnalyst").Result = PersonSelected

Has anybody ever dealt with this before?  Thanks!

Try adding the line
Activedocument.Fields.Update
 
A

alborg

ActiveDocument.FormFields("PortfolioAnalyst").Result = PersonSelected

That should work as you've written it. Make sure that the template's Text
Form Field is actually called "PortfolioAnalyst" and that the text
variable/TextBox "PersonSelected" actually is holding text.
 

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