Create a Task by Draft-EMail > Task+Reminder not Working

Status
Not open for further replies.

HDWTIGER

New Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi Outlook-Forums-Users,
i am searching for an Workaround to creating an task by email-item in Outlook (2010/2013) in draft-mode
befor sending! The .MarkAsTask option works after sending an email. I need a workaround to set a reminder for the sender and not for the recipients bevor sending.

Do this manually by menue of Outlook it works.

Have anybody an idea of an workaround?
Here is my samplecode...

Greetings from Germany :-)

Public Sub SetTask()
Dim objOutApp As Outlook.Application
Dim objMail As Outlook.MailItem

Set objOutApp = GetObject(, "Outlook.Application")
Set objMail = objOutApp.ActiveInspector.CurrentItem

With objMail
.TaskDueDate = DateAdd("d", 5, Now)
.TaskStartDate = DateAdd("d", 5, Now)
.ReminderSet = True
.ReminderTime = #6/21/2014#
.Save
.Display
End With

Set objMail = Nothing
Set objOutApp = Nothing
End Sub
 
If you just need the reminder, ReminderSet and ReminderTime should do it. If you need an associated task item, call the procudure from the ItemAdd event of the SentItems folder.

BTW: By retrieving the Application object from GetObject, you could face security issues (blocked properties). If the code runs within Outlook, the Application object is already available, no need to create a variable for it.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S Create Outlook Task from Template and append Body with Email Body Outlook VBA and Custom Forms 4
P Can I create a Rule that sends me an email when I get a Task? Using Outlook 2
Diane Poremsky Create a Task when a Message is Flagged Using Outlook 0
Diane Poremsky Automatically create a task when sending a message Using Outlook 0
Diane Poremsky Create a Task from an Email using a Rule Using Outlook 0
Diane Poremsky Create Task or Appointment and Insert Selected Text Using Outlook 0
M Automatically create event in calendar when task is created Outlook VBA and Custom Forms 1
H Is it possible to create a view that only show the first task in a list? Using Outlook 1
M receive mail when appointment category changes and create task from appointment Outlook VBA and Custom Forms 0
B on flag message event - create task Outlook VBA and Custom Forms 22
Diane Poremsky Create Tasks from Email and move to different Task folders Using Outlook 0
S Create task with email URL instead of attachment Outlook VBA and Custom Forms 4
sjbtax Auto Create new Task upon Current Task completion Outlook VBA and Custom Forms 28
A Create Task from Email and put body & email as attachment into task notes Outlook VBA and Custom Forms 17
N Macro to create task Using Outlook 1
J OL2010 Create a new task while off line Exchange Server Administration 3
C Visual Basic auto create task from email including attachments Using Outlook 9
2 Flag for Follow up or create new task Using Outlook 1
S Macro to create a new contact, 2 appointments, and a task Using Outlook 1
J Create new outlook task into task subfolder using vba Using Outlook 6
W How to create a cutsom task field in c#? Using Outlook 1
D create auto number field in task form Outlook VBA and Custom Forms 4
C create a button go to linked account on a task form BCM (Business Contact Manager) 3
E Create Rule to Forward Email if Subject Begins With Using Outlook 2
B Modify VBA to create a RULE to block multiple messages Outlook VBA and Custom Forms 0
J Want to create a button on the nav bar (module add-in) to run code Outlook VBA and Custom Forms 2
B How to create a button that sorts and selects the most recent message with ONE click Using Outlook 2
J PSA: How to create custom keyboard shortcut for "Paste Unformatted Text" in Outlook on Windows Outlook VBA and Custom Forms 1
W Create a Quick Step or VBA to SAVE AS PDF in G:|Data|Client File Outlook VBA and Custom Forms 1
Wotme create email only data file Using Outlook 1
S Outlook 365 Help me create a Macro to make some received emails into tasks? Outlook VBA and Custom Forms 1
J How to create a drop down user defined field that will appear on an inbox view Outlook VBA and Custom Forms 8
Commodore Any way to create "from-only" account on Outlook 2021? Using Outlook 1
L Capture email addresses and create a comma separated list Outlook VBA and Custom Forms 5
N Can't create NEW GROUP and add/remove a member from existing Group in Outlook Using Outlook 1
NVDon Create new Move To Folder list Outlook VBA and Custom Forms 0
C Create Meeting With Custom Form Outlook VBA and Custom Forms 2
D Create advanced search (email) via VBA with LONG QUERY (>1024 char) Outlook VBA and Custom Forms 2
G Create ordinal numbers for birthday Outlook VBA and Custom Forms 2
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 5
D Create new email from the received Email Body with attachment Outlook VBA and Custom Forms 10
A How to create fixed signatures for aliases that process through GMAIL? Outlook VBA and Custom Forms 0
M How create a Rule to filter sender's email with more that one @ sign Using Outlook 1
B Can I create a local PST file for SPAM on a drive that is usually disconnected? Using Outlook 3
Chiba Create an appointment for all the members Outlook VBA and Custom Forms 1
S Create a clickable custom column field Outlook VBA and Custom Forms 0
O Create a custom contact form - questions before messing things up... Outlook VBA and Custom Forms 4
L automaticaly create a teams meeting with a sync Using Outlook 0
D Can Exchange Admin Center create a pst for users email/contacts/calendar? Exchange Server Administration 0
S Create A Search Folder That Looks For Message Class? Outlook VBA and Custom Forms 0

Similar threads

Back
Top