Compile error Assigning TaskItem from VB?

S

Steven Yarger

All-

I am trying to Send/Assign an Outlook taskitem from VB.NET code.

The example code given in Microsoft's online help doesn't compile (see code
below) due to the following error:

C:\productiondb\NASManagerBizObjects\NotificationManager.vb(140): 'Send' is
ambiguous across the inherited interfaces 'Outlook._TaskItem' and
'Outlook.ItemEvents_Event'.

Any ideas? thanks/gracias/Vielen Dank!

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olTaskItem)
myItem.Assign
Set myDelegate = myItem.Recipients.Add("April LaMonte")
myItem.Subject = "Prepare Agenda For Meeting"
myItem.DueDate = #9/20/97#
myItem.Send ' ************* COMPILE ERROR HERE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top