how add many strings and vbcrlf in the same string

S

SAM S.L

Hello!.

I have a word 2003 and sp3

My userform fill 3 strings with data, and then create one string with these
three. The result is send to textbox

str1="aaaaa"
str2="bbbb"
str3="cccc"

str_last= str1 + vbCrLf + str2 + vbCrLf + str3

desired result:

aaaa
bbbb
cccc

real result:

aaaabbbbcccc


what is the correct procedure to obtain the desired result????


Thanks!!!!!


sam
 
H

Helmut Weber

Hi SAM,

maybe set the MultiLine property of your textbox to true.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

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