View Single Post
  #4  
Old March 17th 06, 03:13 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Extract several lines of email messages starting from the end

That, of course, assumes you're using VB.NET, which scriptnewbie did not say he was using.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Klaus" wrote in message oups.com...
You can also use this :

Private Function GetLines(ByVal text As String) As String()
Dim tb As New System.Windows.Forms.TextBox
tb.Multiline = True
tb.Text = text
Return tb.Lines
End Function

(Why do all the work by hand?)

Klaus

Ads