• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Macro to set contact reminder to next day 9:00

witzker

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
#43
Thx
But i do not know where to put the code in my macro?
Code:
Private Sub olRemind_BeforeReminderShow(Cancel As Boolean)

    For Each objRem In olRemind
            If objRem.Caption = strSubject Then
                If objRem.IsVisible Then
                    objRem.Dismiss
                    Cancel = True
                End If
                Exit For
            End If
        Next objRem

End Sub
can you pls advise me
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
#44
That code goes into thisoutlooksession with the other code in the macro - it runs automatically when reminders fire.

This goes at the top of thisoutlooksession:
Private WithEvents olRemind As Outlook.Reminders
Dim strSubject As String

Private Sub Application_Reminder(ByVal Item As Object)
Set olRemind = Outlook.Reminders


' as written, this applies to appointment reminders where the appointment is in the send messages category
'IPM.TaskItem to watch for Task Reminders
If Item.MessageClass <> "IPM.Appointment" Then
Exit Sub
End If

If Item.Categories <> "Send Message" Then
Exit Sub
End If

' this grabs the item subject and passes it to the beforeremindershow macro - if there is a match, the reminder doesn't show
strSubject = Item.Subject


' do whatever

End Sub
 

witzker

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
#45
Now I am totally confused

I think the best would be to start from scratch

I open a contact from a custom view
Now if there is a reminder I need in first step of the macro called from the contact ribbon
To delete completely all fields of the reminder to avoid that contact is still red in the view caused by precious reminders

Then go on with the code from before to set remindertime.

So please can you give me the code of a makro that deletes all reminders fields of the opened contact.

Like it is possible in the outlook dialog

Hope for further help
Regards
Witzker
 

witzker

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
#46
Hi
here a screenshot of what the code schould do
<Kennzeichnung Löschen>
before setting new reminder

1533296998547.png