What is wrong with this?
strArray = Split(str, Chr(13), 2)
Or do you mean something different? Perhaps ..
strArray = Split(str, Chr(10) & Chr(13), 2)
.. or ..
Split(Split(a, Chr(10), 2)(0), Chr(13))

Signature
Enjoy,
Tony
> Hi,
>
[quoted text clipped - 12 lines]
>
> Barry.
Jonathan West - 14 Dec 2006 14:59 GMT
> What is wrong with this?
>
[quoted text clipped - 7 lines]
>
> Split(Split(a, Chr(10), 2)(0), Chr(13))
I suspect that if Barry wants to split at every Chr(10) and every Chr(13)
then a better approach would be to first replace every Chr(10) with a
Chr(13) and then split on Chr(13), like this
Dim strArray As Variant
Dim strTemp as String
strTemp = Replace(str, Chr(10), Chr(13)
strArray = Split(strTemp, Chr(13), 2)

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org