Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Calendaring / March 2008

Tip: Looking for answers? Try searching our database.

for Reminder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
soworl - 27 Mar 2008 22:44 GMT
is there any way to dismiss when Application_Reminder is called.

I need to excute some code when reminder called, then I'd like to dismiss
that reminder without clicking the dismiss button.

when below code is running, the reminder cannot dismiss coz reminder is not
visable. dismiss only can work it's visible.

How can I solve this problem?

Help me,
soworl

my code 1 ==============================
Dim ReminderClass As New Class1

Private Sub Application_Startup()
   ReminderClass.init
End Sub

Private Sub Application_Reminder(ByVal Item As Object)
   'DoSomething
   ReminderClass.ReminderDismiss Item.Subject
End Sub

class1 ==============================
Private WithEvents myolapp As Outlook.Application
Private WithEvents colReminders As Reminders
Sub Class_Terminate()
   Call DeRefExplorers
End Sub
Public Sub init()
   Set myolapp = Outlook.Application
   Set colReminders = myolapp.Reminders
End Sub
Public Sub DeRefExplorers()
   Set myolapp = Nothing
   Set colReminders = Nothing
End Sub
Public Sub ReminderDismiss(ByVal sCaption As String)
   If colReminders.Count <> 0 Then
       For i = colReminders.Count To 1 Step -1
            If Len(colReminders(i).Caption) > 0 Then
               If colReminders(i).Caption = sCaption Then
                   If colReminders(i).IsVisible = True Then
                       colReminders(i).Dismiss
                   End If
               End If
           End If
       Next
   End If
End Sub
Brian Tillman - 28 Mar 2008 13:41 GMT
> is there any way to dismiss when Application_Reminder is called.
>
[quoted text clipped - 3 lines]
> when below code is running, the reminder cannot dismiss coz reminder
> is not visable. dismiss only can work it's visible.

Code questions belong in the programming groups.
microsoft.public.outlook.program_vba seems a likely spot.
Signature

Brian Tillman [MVP-Outlook]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.