Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for Modal Appointment Reminders #14

Open
huvanile opened this issue Oct 28, 2016 · 0 comments
Open

Option for Modal Appointment Reminders #14

huvanile opened this issue Oct 28, 2016 · 0 comments

Comments

@huvanile
Copy link
Owner

This could be achieved through a toggle button on the ribbon, which would execute this code if checked:


Private Sub Application_Reminder(ByVal item As Object)
'Purpose: Displays a modal reminder for upcoming appointments.
'Reason for existence: The default outlook reminder displays behind active window where it may be invisible to the user
'exeuctes when a reminder is displayed

    Dim i As AppointmentItem

    If TypeOf item Is AppointmentItem Then
        If item.AllDayEvent = False Then
            'display reminder if meeting date is today
            If FormatDateTime(Now, vbShortDate) = FormatDateTime(item.Start, vbShortDate) Then
                MsgBox item.Subject & " @ " & FormatDateTime(item.Start, vbShortTime) & vbLf & vbLf & "Time now: " & FormatDateTime(Now, vbShortTime), _
                    vbSystemModal + vbInformation, "Meeting Reminder!"
            End If
        End If
    End If


End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant