الموضوع صار بسيط الآن أخي @nssj 🙂
يمكن تطبيق فكرتك في الدالة الرئيسية ..
Public Function MidText(strText As String) As String
Dim Txt as String
Dim x As Integer
Dim t As String
Dim s As Integer
Dim L As Integer
Txt = "@@@" & strText
s = InStr(1, Txt, "عن")
For x = 1 To Len(Txt)
t = Mid(Txt, x, 1)
If t = ChrW(10) And x > s Then
L = x
Exit For
End If
Next
'Debug.Print s, L
MidText = Mid(Txt, s, L - s + 1)
End Function
جرب وقلي ..
لأني أكتب من الهاتف ..