Not a Member Yet,
Click here to Register
How do you like the new design?

ID: 414
Viewed: 3742
Added: Aug 19, 2002
Snippet uploaded by: snippet
Written By: Unknown
Demo: Sorry, no demo

User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

obviously need outlook for this

Add the reference To the Outlook Object L

Highlight all by clicking in box

Highlight All
Dim myOLApp As New Outlook.Application
Dim olNameSpace As Outlook.NameSpace
Dim myItem As New Outlook.AppointmentItem
Dim myRequest As New Outlook.MailItem
Dim myFolder As Outlook.MAPIFolder

Public myResponse
Dim L As String
Dim i As Integer
Dim SearchSub As String
Dim strSubject As String
Dim myFolder As Outlook.MAPIFolder
Dim strSender As String
Dim strBody As String
Dim olMapi As Object
Dim strOwnerBox As String
Dim sbOLApp

Set myOLApp = CreateObject("Outlook.Application")
Set olNameSpace = myOLApp.GetNamespace("MAPI")
Set myFolder = olNameSpace.GetDefaultFolder(olFolderInbox)

'Dim mailfolder As Outlook.MAPIFolder

Set olMapi = GetObject("", "Outlook.Application").GetNamespace("MAPI")

For i = 1 To myFolder.Items.Count
strSubject = myFolder.Items(i).Subject
strBody = myFolder.Items(i).Body
strSender = myFolder.Items(i).SenderName
strOwnerBox = myFolder.Items(i).ReceivedByName

' Now Mail it to somebody
Set sbOLAPp = CreateObject("Outlook.Application")
Set myRequest = myOLApp.CreateItem(olMailItem)
With myRequest
.Subject = strSubject
.Body = strBody
.To = ""

End With
Set sbOLAPp = Nothing


Set myOLApp = Nothing
Exit Sub;

No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.

Replying to a Comment...

Adding your comment. Please wait...

Thanks for adding your comment!. After further review it will be added.

There was a problem adding your comment. Please try again.

Please complete all the fields in the form before sending.

© 2002 - 2017 All Rights Reserved. Conditions