IsVisible Property

Microsoft Outlook Visual Basic

IsVisible Property

       

Returns a Boolean that determines if the reminder is currently visible. All active reminders are visible. If True, the reminder is visible. Read-only.

expression.IsVisible

expression   Required. An expression that returns a Reminder object.

Remarks

This property is determined when it is returned based on the state of the current reminder.

Example

The following example dismisses all reminders that are currently visible. For example, if the current reminder is active, the IsVisible property will return True.

Sub DismissReminders()
'Dismisses any active reminders

    Dim olApp As Outlook.Application
    Dim objRems As Reminders
    Dim objRem As Reminder
   
    Set olApp = Outlook.Application
    Set objRems = olApp.Reminders
   
    For Each objRem In objRems
        If objRem.IsVisible = True Then
            objRem.Dismiss
        End If
    Next objRem
       
End Sub