Replace string that is longer than 255 characters by using List

string

#1

Hi,

I’d like to replace string to word file but the problem is the length of string is dynamic, it might be 200, 400, or even 2000 characters.
But the replace method won’t work if string is longer than 255 characters.

Is it possible if I create list variable (aList) and put every 255 characters of string into aList and automatically replace aList into word file.

Or is there any better way to do this?

Thank you.


#2

fyi, I found the answer from the link below.