J
John
Hi
How can I extract the first line form a multi-line string?
Many Thanks
Regards
How can I extract the first line form a multi-line string?
Many Thanks
Regards
Use Left(yourString, InStr(yourString, Chr(13) & Chr(10))) to get theHow can I extract the first line form a multi-line string?
Stefan Hoffmann said:hi John,
Use Left(yourString, InStr(yourString, Chr(13) & Chr(10))) to get the
first line.
As the OP has posted it also in mpa.queries:Stuart said:MyStringVariable = Left(MultiLine, Instr(MultiLine, vbCrLf) - 1)