default value of a text-formfield > 256 characters

M

Michael Kapoen

Hi,

My question is: How can I put more than 255 characters in
the formfields default value?

The next code fills my text-formfield perfect wth more
than 256 characters:

Dim FmFld As FormField, Str1 As String
Str1 = (a long string > 256 characters)
FmFld.Range.Fields(1).Result.Text = Str1

Or if you're referring to the formfield by name:
ActiveDocument.Bookmarks("Text1").Range.Fields

Selecting the entire document (<ctrl> + <a>) and updating
it (<F9>) will fill the formfield with it's default value.
But I can not get more than 255 characters into the
default value.

How do I put more than 255 characters in it's default
value. the next code will not work:

Activedocument.Formfields("Text1").Textinput.Default = Str1
The formfields default code will lose everything after the
a certain position (about 255).

How can I put more than 255 characters in the formfields
default value?
 

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