Carriage-returns in Formfield textbox result

A

Alder

With a textbox formfield, is there a way in VBA set its result to a string
that has carriage-returns in it so a new line is actually created within the
formfield?

For i = 1 To 3
strVar = strVar & vbCrLf
Next i
ActiveDocuments.Formfields(1).Result = strVar

I also tried the same type of code with the Chr() function, but got similar
results, i.e. no new line, just the little square placeholders for the
non-printing characters.

Sorry if this has been answered a zillion times, but Google didn't turn up
anything that worked. Hopefully, this knot's been untied already...

Thanks,

Alder
 

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