Hi,
http://support.microsoft.com/default...b;en-us;827476
Ken
----------------------
"Imry" <(E-Mail Removed)> wrote in message
news:0DB1967D-0103-493C-A32E-(E-Mail Removed)...
Thank you for your help, but the I do not have a reference for
microsoft.office.interop.outlook.
Where can I find it?
"Ken Tucker [MVP]" wrote:
> Hi,
>
> Add a reference to microsoft.office.interop.outlook.
>
> Imports Outlook = Microsoft.Office.Interop.Outlook
>
> Imports System.Reflection
>
> Module Module1
>
> Sub Main()
>
> ' Create an Outlook application.
>
> Dim oApp As Outlook.Application = New Outlook.Application
>
>
>
> ' Create a new contact item.
>
> Dim oTsk As Outlook.TaskItem =
> DirectCast(oApp.CreateItem(Outlook.OlItemType.olTaskItem),
> Outlook.TaskItem)
>
> 'oCt.Display(True) 'Modal
>
> oTsk.Status = Outlook.OlTaskStatus.olTaskInProgress
>
> oTsk.PercentComplete = 50
>
> oTsk.Importance = Outlook.OlImportance.olImportanceHigh
>
> oTsk.Subject = "My new task"
>
> oTsk.Save()
>
> ' Clean up.
>
> oApp = Nothing
>
> oTsk = Nothing
>
> End Sub
>
> End Module
>
>
>
> Ken
>
> -----------------------
>
> "Imry" <(E-Mail Removed)> wrote in message
> news:BFBC7E20-01C0-4611-A8D1-(E-Mail Removed)...
> Is there a way to programatically add items to the outlook task list using
> VB
> ..net?
>
>
>