Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Square characters on new line

Status
Not open for further replies.

Luongo1

Programmer
Oct 13, 2006
52
CA
Hi,

I put together a template in Word for fax coversheets at work, where a form pops up when a new document is created, asking for info such as name, number, and message, etc. This info is then embedded into the document.

It works great aside from the fact that at the beginning of each new line in the message, a square character/symbol is inserted into the document. How can I get rid of this? This seems like a question that must've been asked before but I couldn't find it on the web so thought I'd post it here. Thanks in advance for your help...
 
Loungo1,

On the surface it sounds like its placing a linefeed or carrage return symbol at the start of the new line. I'm not exactly sure what or how you creating the document or where the text is comming from.


If it is a line feed or carrage return you can use a replace function to get rid of it.

mystring = replace (mystring,vbcrlf,"")

I hope this helps
 
Hi Dashley, thanks for responding. The text is coming from a multi-line user textbox. The characters appear whenever the user presses Enter to start a new line (they don't appear in the form itself, just in the document). I've noticed that if I press the Remove Source Formatting button in Word it removes the characters - is there a way to apply this same function automatically upon submission of the form?

Thanks again...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top