A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Calandaring
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

for Reminder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 27th 08, 10:44 PM posted to microsoft.public.outlook.calendaring
soworl
external usenet poster
 
Posts: 34
Default for Reminder

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
  #2  
Old March 28th 08, 01:41 PM posted to microsoft.public.outlook.calendaring
Brian Tillman
external usenet poster
 
Posts: 17,452
Default for Reminder

soworl wrote:

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.


Code questions belong in the programming groups.
microsoft.public.outlook.program_vba seems a likely spot.
--
Brian Tillman [MVP-Outlook]

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pop-up reminder. vincentnyc Outlook - Calandaring 1 December 7th 07 05:12 PM
Reminder box Willow Outlook - Calandaring 1 August 5th 07 10:25 PM
Reminder Peder Outlook - Installation 0 June 8th 07 11:31 AM
how to set a 90 day reminder John H Outlook - General Queries 2 June 30th 06 02:35 PM
Reminder deke Outlook - Calandaring 2 April 24th 06 08:17 AM


All times are GMT +1. The time now is 10:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.