K
Kevin R
I have a userform with a multiline textbox, the EnterKeyBehavior set to True
and MultiLine is set to True. This form is used to create a letter and the
multiline field allows the user to enter names for a cc field on the letter.
If more than 1 cc name is needed, the user can press the enter key while in
the multiline textbox and enter the next name until all names are entered.
However, when the letter is generated, the names all appear on the same line
rather than starting each name on a new line. I cannot figure this out.
Below is the code for the cc on the userform that stores it as a variable.
In the letter, I then use the { DOCVARIABLE "CC" } to call the value from the
userform. Any ideas how to preserve the carriage returns entered in the
field on the user form?
If txtCC.Value <> "" Then
.Variables("CC").Value = txtCC.Text
Else
.Variables("CC").Value = " "
End If
and MultiLine is set to True. This form is used to create a letter and the
multiline field allows the user to enter names for a cc field on the letter.
If more than 1 cc name is needed, the user can press the enter key while in
the multiline textbox and enter the next name until all names are entered.
However, when the letter is generated, the names all appear on the same line
rather than starting each name on a new line. I cannot figure this out.
Below is the code for the cc on the userform that stores it as a variable.
In the letter, I then use the { DOCVARIABLE "CC" } to call the value from the
userform. Any ideas how to preserve the carriage returns entered in the
field on the user form?
If txtCC.Value <> "" Then
.Variables("CC").Value = txtCC.Text
Else
.Variables("CC").Value = " "
End If