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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Reminder for Calendar-Items in the past?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 9th 06, 06:57 AM posted to microsoft.public.outlook.program_vba
Michel Lauterbach
external usenet poster
 
Posts: 5
Default Reminder for Calendar-Items in the past?

Hello!

Thanks for help, but the reminder occurs like before!

The code sems not to work!

Regards Michel

"Ken Slovak - [MVP - Outlook]" wrote:

Place this code in ThisOutlookSession:

Private WithEvents colReminders As Outlook.Reminders

Private Sub Application_Startup()
Set colReminders = Application.Reminders
End Sub

Private Sub colReminders_ReminderAdd(ByVal ReminderObject As Reminder)
Dim oFolder As Outlook.MAPIFolder

Set oFolder = ReminderObject.Parent
'test for Calendar folder
If oFolder.DefaultItemType = olAppointmentItem Then
Call ClearOldReminder(ReminderObject)
End If
End Sub

Sub ClearOldReminder(oReminder As Outlook.Reminder)
Dim datReminder As Date

datReminder = oReminder.NextReminderDate
' if = 0 then due or past due reminder
If DateDiff("n", Now, datReminder) = 0 Then
oReminder.Dismiss
End If
End Sub

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michel Lauterbach" wrote in
message ...
Hello!

Something new in Outlook 2003: If you place a new Calendar-Item in the
past,
there will occur a reminder promptly!

As we use this method to hold out workhistory this new feature is very
nasty
for us.

Is it possible to place a vba-script in the "ThisOutlookSession"-Part of
the
VbaProject.OTM that deletes the marker for the reminder at the
calendar-item
while saving a new calendar-item? How is this possible? What is the
vba-code?

Our environment: Windows XP-SP2 with Office-Outlook 2003-SP2

Thanks for info!!!

Michel




Ads
  #2  
Old January 9th 06, 04:11 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Reminder for Calendar-Items in the past?

Do you have macros enabled? If not the code will not run.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michel Lauterbach" wrote in
message ...
Hello!

Thanks for help, but the reminder occurs like before!

The code sems not to work!

Regards Michel


  #3  
Old January 10th 06, 08:50 AM posted to microsoft.public.outlook.program_vba
Michel Lauterbach
external usenet poster
 
Posts: 5
Default Reminder for Calendar-Items in the past?

Hello!

Yes, macros are enabled. There are also some other macros in
ThisOutlookSession, e.g. an attachment-reminder for E-Mail.

Isn't it possible to connect the macro to the oppening of a new
calendar-item? Perhaps you can check at this moment while the date is in the
past or not and depending on this enable the reminder or not?

Thank you for help!!!

Regards Michel

"Ken Slovak - [MVP - Outlook]" wrote:

Do you have macros enabled? If not the code will not run.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michel Lauterbach" wrote in
message ...
Hello!

Thanks for help, but the reminder occurs like before!

The code sems not to work!

Regards Michel



  #4  
Old January 10th 06, 03:27 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Reminder for Calendar-Items in the past?

You'd probably be best off hooking into NewInspector to see when an item is
opened, checking to make sure it's a calendar item and then handling it's
Save event. During that event handler you can cancel the reminder flag:
AppointmentItem.ReminderSet = False.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michel Lauterbach" wrote in
message ...
Hello!

Yes, macros are enabled. There are also some other macros in
ThisOutlookSession, e.g. an attachment-reminder for E-Mail.

Isn't it possible to connect the macro to the oppening of a new
calendar-item? Perhaps you can check at this moment while the date is in
the
past or not and depending on this enable the reminder or not?

Thank you for help!!!

Regards Michel


  #5  
Old January 10th 06, 03:50 PM posted to microsoft.public.outlook.program_vba
Michel Lauterbach
external usenet poster
 
Posts: 5
Default Reminder for Calendar-Items in the past?

Hi Ken,

thank you for the information.

Is it possible for you to send me the sub-code, as I'm not able to write it.

Sorry for complications...

Regards Michel

"Ken Slovak - [MVP - Outlook]" wrote:

You'd probably be best off hooking into NewInspector to see when an item is
opened, checking to make sure it's a calendar item and then handling it's
Save event. During that event handler you can cancel the reminder flag:
AppointmentItem.ReminderSet = False.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michel Lauterbach" wrote in
message ...
Hello!

Yes, macros are enabled. There are also some other macros in
ThisOutlookSession, e.g. an attachment-reminder for E-Mail.

Isn't it possible to connect the macro to the oppening of a new
calendar-item? Perhaps you can check at this moment while the date is in
the
past or not and depending on this enable the reminder or not?

Thank you for help!!!

Regards Michel



  #6  
Old January 11th 06, 03:18 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Reminder for Calendar-Items in the past?

There are examples of NewInspector handling at www.outlookcode.com, check
there for some code to get you started.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michel Lauterbach" wrote in
message ...
Hi Ken,

thank you for the information.

Is it possible for you to send me the sub-code, as I'm not able to write
it.

Sorry for complications...

Regards Michel


 




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
unable to see calendar past May 1 2006 Trez Outlook - Calandaring 0 March 2nd 06 05:31 PM
How can I delete past appointments by the month from my calendar? teplicky Outlook - Calandaring 1 February 21st 06 07:30 PM
Reminder in outlook 2003 by flagging email can be set in past Dan1roda Outlook - Calandaring 6 February 14th 06 10:41 PM
How do I get the calendar to save ALL of my past appointments? Donut Outlook - Calandaring 1 January 13th 06 05:16 AM
my flagged items are not popping up in the "reminder dialog box", Karla Camarata Outlook - Using Contacts 0 January 10th 06 06:57 PM


All times are GMT +1. The time now is 03:44 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.