close reminder window programatically

  • Thread starter Thread starter soworl
  • Start date Start date
so funny~

compare below two code,
It looks like,
just define Reminder, it affects something.

That means I have to find other solution. T.T

1> Reminder is not show up. nothing happen except one msgbox. it looks good.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Private Sub colReminders_BeforeReminderShow(Cancel As Boolean)
MsgBox colReminders.Count
Cancel = True
End Sub
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
2> Reminder show up on time. (if you set the reminder 2mins, not show up
before 2mins, but show up 0mins - only one time at on schedule time)
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Private Sub colReminders_BeforeReminderShow(Cancel As Boolean)
Dim objRem As Reminder
Dim objItem As Object

MsgBox colReminders.Count
Cancel = True
End Sub
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Thanks,
soworl
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
 
Hi,

I found why the dismiss occurs error.
Dismisse affects active reminders.
"A reminder is active if its IsVisible property is set to True."
So in colReminders_BeforeReminderShow, we cannot use dismiss since isVisible
is false.

do you think it's right?

thanks,
soworl
 
Back
Top