strDnr = "2828;1212;11;22;33;"
strDnr = Replace(strDnr, ";", vbCrLf)
ActiveDocument.Variables("bDnr") = strDnr & " "
Then from the document I use the field {DocVariable "bDnr"} to display the
value from the variable but the problem is that instead of showing new line
I can only see square which is not what I want. Later in the code I also
need to replace vbCrLf with ";"
Chuck - 24 Mar 2005 17:57 GMT
Use Chr(13) instead, thus:
strDnr = Replace(strDnr, ";", Chr(13))
Not sure why vbCrLf doesn't work but I've tested Chr(13) and it does.
> strDnr = "2828;1212;11;22;33;"
> strDnr = Replace(strDnr, ";", vbCrLf)
[quoted text clipped - 4 lines]
> I can only see square which is not what I want. Later in the code I also
> need to replace vbCrLf with ";"