Log in

View Full Version : box symbol appear in document



daniel76
04-15-2008, 03:13 AM
Hi,

I have a question in regards to DOCVARIABLE in word document. In the userform, i have a textbox whose multilines is set to true so that user can type more than one line in the box. In the document, i have added { DOCVARIABLE bodytext } to accommodate the value of the textbox.

This is what i found when user enters more than one line. What appeared on the document was as follows

Hello World
0
0This is for testing

where 0 denotes a square box symbol.

All i did was typed in
Hello World (enter carriage key)
(enter carriage key)
This is for testing

Somehow, i think DOCVARIABLE takes the "enter" character into account. My problem is i am not sure what that box symbol is (could be the enter carriage character). If i trim the value of the textbox in order to get rid of that symbol, then what appears would be different from that being typed in by user.

How do i fix this? any ideas are greatly appreciated.
BTW, this is for word 03

Thank you in advance

CreganTur
04-16-2008, 11:36 AM
Hey Daniel,

You're correct in that the box symbol is a representation of the carriage character (enter).

I'm not sure if trimming out that symbol would change the text or not- I'd suggest trying it and seeing what happens.

Is there a reason why your Users are using the enter key to add lines to the text being entered into this box? Are they entering multiple values of some kind? Like: FirstName {enter}LastName{enter}Address{enter}
If so, then perhaps a userform with multiple textboxes would be a better option.