![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hello,
using excel VBA I send task planning to my colleagues. Sometimes I need to update the task or to delete it but i'm not able. My code lines a ----- Sub DeleteTaxDayShared() Dim objOL As Outlook.Application Dim objNS As Outlook.Namespace Dim strFind As String Dim objCalFolder As Outlook.MAPIFolder Dim colCalendar As Outlook.Items Dim objAppt As Outlook.TaskItem Dim myRecipient As Outlook.Recipient Set objOL = CreateObject("Outlook.Application") Set objNS = objOL.GetNamespace("MAPI") Set myRecipient = ") myRecipient.Resolve If myRecipient.Resolved Then Set objTaskFolder = objNS.GetSharedDefaultFolder(myRecipient,olFolderT asks) Set colTask = objTaskFolder.Items strFind = "[Subject] = " & Chr(34) & "Tax Day" & Chr(34) Set objTask = colTask.Find(strFind) If Not objTask Is Nothing Then objTask.Delete End If End If Set objOL = Nothing Set objNS = Nothing Set objCalFolder = Nothing Set colCalendar = Nothing End Sub ----- I receive runtime error on: Set objTaskFolder = objNS.GetSharedDefaultFolder(myRecipient, olFolderTasks) Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tasks categories. Unable to modify another user's categories. | Tommy | Outlook - Installation | 0 | August 9th 06 04:43 PM |
how to delete overdue tasks/reminders? | jon | Outlook - General Queries | 1 | August 3rd 06 04:53 PM |
How to delete all calender,tasks,notes,contacts from outlook? | Paul L | Outlook - General Queries | 1 | May 1st 06 05:12 PM |
How do I modify Delete button to also mark item as read? | [email protected] | Outlook and VBA | 1 | April 24th 06 06:14 AM |
User cannot edit or delete tasks | Micheline | Outlook - Installation | 0 | February 15th 06 10:35 PM |