Error 4609- String Too Long

M

Mark L

Anybody know anything about the string too long error message. I'm copying
form field text from one doc to another using the following line of code:

CurrentDoc.Range.FormFields("ScopeOfRegistration").Result =
OldReport.Range.FormFields("ScopeOfRegistration").Result

And I get the error if the text is too long. The formfields are set to
unlimited text, and I can manually copy from one to the other, so I know it's
not a table row size limitation, but I can't figure out why I am getting this
message. Any words of wisdom would be much appreciated.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?TWFyayBM?=,

Yes, this is a known error, and I'm pretty sure it's documented in the
KnowledgeBase on microsoft.com. As I recall, the trick is to unprotect the
document and add the text directly into the range (IOW, don't use
Formfield(index).Result)
Anybody know anything about the string too long error message. I'm copying
form field text from one doc to another using the following line of code:

CurrentDoc.Range.FormFields("ScopeOfRegistration").Result =
OldReport.Range.FormFields("ScopeOfRegistration").Result

And I get the error if the text is too long. The formfields are set to
unlimited text, and I can manually copy from one to the other, so I know it's
not a table row size limitation, but I can't figure out why I am getting this
message. Any words of wisdom would be much appreciated.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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