• Subject: Re: Setting reminder in outlook based on files created / modified in word.excel
  • Author: Graham Mayor
  • Date: 20 Feb 2010
  • References: 1
Try the following Word macro to save the document and add a reminder 1 month
and 15 days hence
You could do something similar from Excel

Sub AddOutlookApptmnt()
Dim ol As New Outlook.Application
Dim ci As AppointmentItem
Dim strDate As String
Dim strDocPath As String
Dim strDocName As String

strDate = DateAdd("m", 1, Date)
strDate = DateAdd("d", 15, strDate)
With ActiveDocument
On Error GoTo CancelledByUser
.Save
strDocPath = .FullName
strDocName = .name
End With
Set ci = ol.CreateItem(olAppointmentItem)
With ci
.Start = strDate
.ReminderSet = True
.AllDayEvent = True
.Subject = strDocName
.Categories = "Word Documents"
.Body = strDocPath & " requires processing."
.BusyStatus = olFree
.Save
End With
Set ol = Nothing
Exit Sub
CancelledByUser: 'Error handler
MsgBox "Cancelled By User", , "Operation Cancelled"
End Sub


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


"rjagathe" <rjagathe@gmail.com> wrote in message
news:e504c21d-1803-46bb-97e7-ecda62cfe523@t9g2000prh.googlegroups.com...
> I want to take follow up action on files created /modified by
> me.So,I want to automatically create an reminder in outlook whenever I
> create/modify files in Word/Excel.The reminder should be 1 month /15
> days from the date of creation/modification of each file.This action
> may be done in background or with our knowledge.That is, whenever I
> save a file,an outlook window may pop out so that I could set
> reminders.
>
> Please help.
20 Feb 2010Setting reminder in outlook based on files created / modified in word.excel.rjagathe
20 Feb 2010\ Re: Setting reminder in outlook based on files created / modified in word.excel.Graham Mayor
21 Feb 2010   \ Re: Setting reminder in outlook based on files created / modified in word.excel.rjagathe
21 Feb 2010      \ Re: Setting reminder in outlook based on files created / modified in word.excel.Graham Mayor
22 Feb 2010         \ Re: Setting reminder in outlook based on files created / modified in word.excel.rjagathe
22 Feb 2010            |- Re: Setting reminder in outlook based on files created / modified in word.excel.Graham Mayor
22 Feb 2010            \ Re: Setting reminder in outlook based on files created / modified in word.excel.Graham Mayor
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)