Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Replace, vbCrLf

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Senad Isanovic - 23 Mar 2005 16:59 GMT
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 ";"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.