General information
Category:
COM/DCOM and OLE Automation
Title:
Replacement string sending to word too long...
I have a word template that has several fields replaced before being sent out. This is done using the search and replace functions:
WITH oRange.Find
.Replacement.Text = ALLTRIM(outfile.spec_inst)
lFound = .Execute(,,,,,,,1,,,wdReplaceOne)
ENDWITH
This works fine for all my replacement fields. But this specific one is a memo field, and I guess someone finally filled it in past the string limit. I am getting: OLE lDispatch exception code from Microsoft Word: String parameter too long.
What I am looking for is a work around or fix. So far I have found nothing besides going to a mail merge (which at this point I'm not sure I want to do). Any thoughts would be appreciated.
Thanks,
Kevin
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only