This is the problem : I use a UserForm to gather information from the user. This information is typed into a textbox on the userform and the user can create multiple lines in that textbox.
So far, no problems. The trouble starts when I write code in VBA to copy the content of that textbox into a FormField in a Word document. Instead of multiple lines, I get 1 line. Instead of carriage returns, there are unreadable signs inside the text (which manifest themselves as little squares).
This is the code I use to transfer the text :
ActiveDocument.FormFields("ProdDescr").Result = Me!txtProdDescr
This code should transfer the text in the textbox txtProdDescr (on the UserForm) to the FormField ProdDescr (on the Word document).
It works, but I lose the multiple line formatting.
Can anyone help me with this?
So far, no problems. The trouble starts when I write code in VBA to copy the content of that textbox into a FormField in a Word document. Instead of multiple lines, I get 1 line. Instead of carriage returns, there are unreadable signs inside the text (which manifest themselves as little squares).
This is the code I use to transfer the text :
ActiveDocument.FormFields("ProdDescr").Result = Me!txtProdDescr
This code should transfer the text in the textbox txtProdDescr (on the UserForm) to the FormField ProdDescr (on the Word document).
It works, but I lose the multiple line formatting.
Can anyone help me with this?