HOW TO GET PROPERTIES FOLLOW UP

Status
Not open for further replies.

oliv-

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi,
I need to get properties from an Outlook Mailitem to know if there is a "follow up" (task for me) on this Email and if right i want to get reminder details.

Code:
Sub baba_Active_item()
    Dim oItem As Object
    Set oItem = ActiveInspector.CurrentItem
       
    Dim pa As Outlook.PropertyAccessor
    Const TASK_REMINDER_TIME = "http://schemas.microsoft.com/mapi/id/{00062008-0000-0000-C000-000000000046}/0x00008502"
        Set pa = oItem.PropertyAccessor
MsgBox " Reminder =" _
          & pa.GetProperty(TASK_REMINDER_TIME)
         
End Sub
= error "-2147221246 (80040102)" Cannot get property..
 
Why not just check the .IsMarkedAsTask value? If it's true, the item is flagged. Use .ReminderTime to get the reminder time.

Code:
Sub baba_Active_item()

  Dim oItem As Object
  Set oItem = ActiveInspector.CurrentItem

  If oItem.IsMarkedAsTask = True Then
       MsgBox " Reminder = " & oItem.ReminderTime
  End If

End Sub
 
Because i want to test it before is sent, (=oItem.IsMarkedAsTask = False )
 
Thank you for your responses and your time.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
efire9207 Set all properties Using Outlook 1
V Folder Properties - Gmail account can't switch Using Outlook 5
Cathy Rhone The properties of the message have been changed Using Outlook 1
U Outbox Message Stuck after reading some MailItem Properties with VBA Outlook VBA and Custom Forms 1
M OUTLOOK 2013 CONTACT PROPERTIES Using Outlook 0
Werewolf Workaround for the missing Activities tab in Contact Folder Properties in Outlook 2010? Using Outlook 2
S how to access the properties of a contact given distlist.member object Outlook VBA and Custom Forms 1
S how to set user properties to a newly created appointment Outlook VBA and Custom Forms 12
B "The properties of the message…have been changed" error Outlook VBA and Custom Forms 1
O No Internet Header Properties Using Outlook 2
K how to Access Outlook Contact Properties Using Outlook 1
H Facility Mangaement using Exchange Resource Mailbox, Conflicts properties Using Outlook 5
P Changing File As Properties Using Outlook 7
B Custom Properties or Reply Outlook VBA and Custom Forms 7
A Expected behauvior when modifying properties? Outlook 2003. Outlook VBA and Custom Forms 3
T Custom Contact Forms and User Properties Outlook VBA and Custom Forms 2
K Programmatically accessing Outlook properties Outlook VBA and Custom Forms 3
E Properties added to MailItem in ItemSend event visible to recipien Outlook VBA and Custom Forms 1
P Setting combobox properties from Outlook 2007 Add-in Outlook VBA and Custom Forms 9
W Displaying custom properties of a PDF DocumentItem Outlook VBA and Custom Forms 3
E Some question if I understand user properties correct Outlook VBA and Custom Forms 3
E Some question if I understand user properties correct Outlook VBA and Custom Forms 3
E User Properties vs. Hidden attachment Outlook VBA and Custom Forms 2
E User Properties vs. Hidden attachment Outlook VBA and Custom Forms 2
M user-defined properties in printed emails? Outlook VBA and Custom Forms 8
T Propagating User Properties to Recipients Outlook VBA and Custom Forms 1
D Appointment item properties Outlook VBA and Custom Forms 5
K Accessing contact's custom properties in a Outlook 2007 form region Outlook VBA and Custom Forms 1
T Outlook custom properties Outlook VBA and Custom Forms 5
C Outlook 365 Can you change the follow up colour? Using Outlook 1
justicefriends How to set a flag to follow up using VBA - for addressee in TO field Outlook VBA and Custom Forms 11
R Follow up button doesn't working neither the reminders in BCM BCM (Business Contact Manager) 0
A Flag Message for Follow Up after sending Outlook VBA and Custom Forms 1
V Changing default date for task follow-up buttons Using Outlook 2
M Setting flag follow up for next business day Outlook VBA and Custom Forms 1
O Outlook 2016 follow-up flags--how can I add dates? Using Outlook 1
G Flag for Follow Up with a customized duetime Using Outlook 1
G Follow up and Using Outlook 1
K check for sender, follow to my personal adress and delete the sent folder. Outlook VBA and Custom Forms 1
D No Follow up when making new form Outlook VBA and Custom Forms 2
rc4524 Create auto follow-up reminder email for already sent messages Outlook VBA and Custom Forms 1
smokiibear follow-up flag fro Tasks in Outlook 2010 Using Outlook 5
N Adding a note to a e-mail which has been marked as follow up Using Outlook 1
A Post Form Follow Up Flag Using Outlook 4
J How to set a flag to follow up using VBA for outlook 2003 Using Outlook 10
F Apply Follow up flag ONLY to the people cc'd. Using Outlook 1
R Flagged for Follow Up Search folder MIA after PST export/import Using Outlook 1
M adding marked emails under follow-up Using Outlook 2
2 Flag for Follow up or create new task Using Outlook 1
M How can I customize the Follow Up Flag message in Quick Steps? Using Outlook 1

Similar threads

Back
Top