Codes for "Mark Complete" the task

Status
Not open for further replies.

suryakant02

New Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server 2010
Hello...

I have created a code for auto reminder recurring mail from outlook task but every time, the popup for the task come up and i have to mark complete the task to prevent the recurring. thus, can anybody help me in writing code for the auto "Mark Complete" the task.

my codes

Code:
Private Sub Application_Reminder(ByVal Item As Object)
    Dim objPeriodicalMail As MailItem
 
    If Item.Class = olTask Then
        If InStr(LCase(Item.Subject), "send an email periodically") Then
          Set objPeriodicalMail = Outlook.Application.CreateItem(olMailItem)
          With objPeriodicalMail
               .Subject = "Test"
               .To = "abc@def.com"
               .Body = "Dear Sir," & vbCrLf & "Please send the report by 1000hrs."
               '.Attachments.Add ("C:\Attachments\DataNumen.docx")
               .Importance = olImportanceHigh
               .ReadReceiptRequested = True
               .Send
          End With
        ElseIf InStr(LCase(Item.Subject), "send an email periodically1") Then
          Set objPeriodicalMail = Outlook.Application.CreateItem(olMailItem)
          'Change the following email information as per your actual needs
          With objPeriodicalMail
               .Subject = "Test"
               .To = "abc@def.com"
               .Body = "Dear Sir," & vbCrLf & "Please send the report by 1000hrs."
               '.Attachments.Add ("C:\Attachments\DataNumen.docx")
               .Importance = olImportanceHigh
               .ReadReceiptRequested = True
               .Send
          End With
        End If
    End If
End Sub
 

Amanda Barron

New Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
Hi,

you can simply add the following to auto mark the current task complete:

Code:
Item.MarkComplete
Hope this can help you.
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
N Outlook Email Rule execution through shortcut keys (VBA codes) Using Outlook 1
M Update field codes when opening Outlook Template Outlook VBA and Custom Forms 2
L Outlook 2007 Codes Export and Import Using Outlook 9
T Setting Color codes for each user of a shared Calendar Using Outlook 1
A Updating Outlook Contact Phone Nos to international dialling codes Using Outlook 5
A Cannot Send/Receive - Error codes: 0x80041059, 0x8004102A, 0x8DE00005 Using Outlook 5
M Error Codes 0x800CCC79 and 0x800CCC92__ Using Outlook 2
J Outlook Error Codes: 0x8DE00003; 0x8DE00002; and 0x8004102A Using Outlook 3
R Continue to receive Error codes 0X800CCC92 ans 0X800CCC7D Using Outlook 1
S For forwarding emails, HTML special character codes displaying code instead of character Using Outlook 1
2 no error codes Using Outlook 1
G Hidden codes are displayed. Using Outlook 2
P codes on my new email screen such as dots and paragraph symbols Using Outlook 1
A Calendar Printing Assistant - not using category color codes except in full day events Using Outlook 1
M I keep getting error codes, myoutbox is not sending out mail, and I am unable to send out mail. Using Outlook 0
DoctorJellybean Outlook 365 doesn't always mark emails as read Using Outlook 3
O Office 365 Outlook - mark to download Using Outlook 0
S Mark as Unread unless Categorized by Color Using Outlook 0
Diane Poremsky Mark Sent Items as Read After Copying with a Rule New Slipstick.com Articles 0
M Mark Complete keyboard shortcut... on a mac running Windows Bootcamp Using Outlook 0
T Adding "Mark As Complete" btton to Task Remindet Pop-Up Using Outlook 3
F Automatically close email after selecting mark unread Using Outlook 1
T Outlook 2013 either fails to mark messages as read or marks them as read, then un-marks them. Using Outlook 1
Mary B VBscript: Need to copy every email to a folder & mark that copy as read Outlook VBA and Custom Forms 5
C Mark all incoming emails as read Outlook VBA and Custom Forms 3
M How do I mark emails already received as read when I get a second, different email based on subject? Outlook VBA and Custom Forms 3
T outlook 2013 does not mark multiple forward messages as forward Using Outlook 2
7 Macro to mark message as junk and delete Outlook VBA and Custom Forms 3
V Mark BCC when emails is sent from specific account Outlook VBA and Custom Forms 2
B Outlook 2010: how to mark messages without opening? Eg for deletion Using Outlook 2
Z Mark moved copies as "Read" Using Outlook 19
Z "Mark All as Read" in Outlook 2007 extremely slow Using Outlook 1
N Mark or follow up emails in shared mailbox Using Outlook 2
H mark as read per folder options Using Outlook 1
C Outlook 2010 search for question mark in calendar Using Outlook 7
M Can't mark appointments as private for other user Using Outlook 1
R Outlook 2010 Quick Steps - Mark as Read Action and New Mail Notification Using Outlook 1
L Outlook / messages not mark as been read Using Outlook 1
C Outlook 2003 Exclamation Mark Using Outlook 1
K clicking "completed" icon doesn't mark task complete. Using Outlook 2
M Mail rules: "Mark as read" doesn't work... Using Outlook 1
J Change 'Mark As Read' Status Without using Reading Pane Using Outlook 1
S How do I mark an email I want to send as 'private'? Using Outlook 2
L Apostrophe becomes question mark when posting to a new group using Windows Live mail Using Outlook 3
D Outlook 2010 - Mark Unread button isn't always in the correct state Using Outlook 4
M Mark mail as read on Hotmail server using Connector Using Outlook 2
H Outlook 2007 Errors-Out/Restarts Trying to Print an Email with MS-Word Mark-Up Area Using Outlook 1
D In the last few days I get error message box indicating with a Red X mark and 'This operaion has been cancelled due to restriction on this comput Using Outlook 3
S Flagging Messages - Cannot 'Mark Complete'! Using Outlook 1
K Right-Click to Mark ALL as Read on (Exchange) Public Folder Using Outlook 1
Similar threads


















































Top