Solved

Stripping CR/LF in VB

Posted on 2003-12-05
4
662 Views
Last Modified: 2010-05-18
Hi,

Does someone have a function for stripping CR/LF from a string?

THX

Rich
0
Comment
Question by:RichardFox
  • 2
  • 2
4 Comments
 

Author Comment

by:RichardFox
ID: 9885322
TO clarify, may be imbedded and/or multiple CR/LFs
0
 
LVL 5

Accepted Solution

by:
mccainz2 earned 50 total points
ID: 9885330
mystring=myreplace(mystring,vbcr,"")
mystring=replace(mystring,vblf,"")
mystring=replace(mystring,vbcrlf,"")


0
 
LVL 5

Expert Comment

by:mccainz2
ID: 9885362
typo in the first line , myreplace should be simply replace....
0
 

Author Comment

by:RichardFox
ID: 9896718
Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question