use VBA's Replace$ function ...
NewString$ = Replace$(DataInStr$,vbCrLf," ")
NewString$ will contain DataInStr with all the CrLF pairs replaced with a single space.
David
When you are in a loop and need to update the GUI, you need to periodcally yield control via the DoEvents call.
Just be sure to make your sub or function handle the potential of re-enterancy. For example, you push a button on the form to start this process. Inside the button you disable it...
I've noticed when placing code in the initialize and terminate events, these should be used for creating and/or destroying objects, setting default values. A seperate sub or function should be used to complete initialization of objects. If not, you run the risk of an automation time out. Just...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.