Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / November 2004

Tip: Looking for answers? Try searching our database.

Create Task from Email message

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mandrews@compucom.com - 11 Nov 2004 20:39 GMT
Can I create a task automatically from an incomming email
message using the rules wizard?
Michael Bauer - 16 Nov 2004 07:00 GMT
Unfortunatly you cannot, but you could do that with your own VBA code.

Signature

Viele Grüße
Michael Bauer

> Can I create a task automatically from an incomming email
> message using the rules wizard?
Email to Task - 18 Nov 2004 19:10 GMT
Is this code difficult code. I am not familar with writting VBA code so is it
possible to have the you write this code for me?

> Unfortunatly you cannot, but you could do that with your own VBA code.
>
> > Can I create a task automatically from an incomming email
> > message using the rules wizard?
Michael Bauer - 18 Nov 2004 19:56 GMT
Here is a little sample that calls a function each time a new e-mail is
coming in (there may be expectings). The method "CreateTaskFromMail" is
almost still empty. What kind of data do you like to use for the task?

'<DieseOutlookSitzung>
Private WithEvents m_oItems As Outlook.Items

Private Sub Application_Startup()
 Set m_oItems =
Application.Session.GetDefaultFolder(olFolderInbox).Items
End Sub

Private Sub m_oItems_ItemAdd(ByVal Item As Object)
 If TypeOf Item Is Outlook.MailItem Then
   CreateTaskFromMail Item
 End If
End Sub

Public Sub CreateTaskFromMail(oMail As Outlook.MailItem)
 Dim oTask As Outlook.TaskItem

 Set oTask = Application.CreateItem(olTaskItem)
 With oTask
   .Subject = oMail.Subject
   .Save
 End With
End Sub
'</DieseOutlookSitzung>

Signature

Viele Grüße
Michael Bauer

> Is this code difficult code. I am not familar with writting VBA code so is it
> possible to have the you write this code for me?
[quoted text clipped - 3 lines]
> > > Can I create a task automatically from an incomming email
> > > message using the rules wizard?
Create Task from Email message - 29 Nov 2004 12:51 GMT
This a call center and some problem are escalated because agents are not
available. I would like to take the subject line a of a particular message
from a specific mailbox (TM-099-PSST Escalations) and create the Task. I will
try to write this from the sample you sent. If you can think of anything else
please let me know.

> Here is a little sample that calls a function each time a new e-mail is
> coming in (there may be expectings). The method "CreateTaskFromMail" is
[quoted text clipped - 36 lines]
> > > > Can I create a task automatically from an incomming email
> > > > message using the rules wizard?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.