Text Form Field Length problems.

S

steve_lowe21

I had a problem with only being able to put 256 characters in a text
form field, as others have in this group.

using the command;

ActiveDocument.FormFields("FieldName").Result = YourString

With no answers to this on any of the other similar topics I had a look
at the other methods associated with
ActiveDocument.FormFields("FieldName").

and found the following lets you add well over 256 characters to a text
form field.

ActiveDocument.FormFields("Fieldname").Range.Text = YourString

Hope this help someone.

SwitchBlade.
 
S

steve_lowe21

Ah, have just found a problem with this.

It replaces the text form field with the text, instead of adding the
text into the field.
 
T

Tony Jollans

The way to get round this slightly odd problem is to use:

ActiveDocument.Bookmarks("Fieldname").Range.Fields(1).Result.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