close reminder window programatically

S

soworl

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
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
 
S

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top