P
Pete
The following is a method to post data to a word form field from vba.
However, how do you split up a text string variable if it contains
carriage returns? When I run the following code it works but it
imports the text in one line with little boxes which are actually
carriage returns (chr(10) or chr(13)). What I would like to do is
create a loop to search for the line feeds and append a portion of the
string at a time to the formfield. If anyone has a better idea I am
all ears.
objWord.ActiveDocument.FormFields(BookMarkName).Result = FieldValue
However, how do you split up a text string variable if it contains
carriage returns? When I run the following code it works but it
imports the text in one line with little boxes which are actually
carriage returns (chr(10) or chr(13)). What I would like to do is
create a loop to search for the line feeds and append a portion of the
string at a time to the formfield. If anyone has a better idea I am
all ears.
objWord.ActiveDocument.FormFields(BookMarkName).Result = FieldValue