PC Review


Reply
Thread Tools Rate Thread

How do i set up a calendar reminder in word

 
 
Traceyloo
Guest
Posts: n/a
 
      8th Apr 2008

 
Reply With Quote
 
 
 
 
Graham Mayor
Guest
Posts: n/a
 
      8th Apr 2008
You create calendar entries and reminders in Outllok, not Word; although you
can create an entry from Word using a macro - the basic code being:

Sub AddOutlookApptmnt()
Dim ol As New Outlook.Application
Dim ci As AppointmentItem
Dim strDate As String
Dim strTime As String
Dim strDocName As String
Dim intPos As Integer
Dim datOutlookDate As Date

strDate = Date
strTime = Format((Time), "hh:mm")
datOutlookDate = CDate(strDate & " " & strTime)

ActiveDocument.Save
'Find position of extension in filename
strDocName = ActiveDocument.name
intPos = InStrRev(strDocName, ".")
If intPos = 0 Then

End If
strDocName = Left(strDocName, intPos - 1)

Set ci = ol.CreateItem(olAppointmentItem)
With ci
.start = strDate
.ReminderSet = False
.AllDayEvent = True
.Subject = strDocName
.Location = InputBox("Location?")
.Categories = InputBox("Category?")
.Body = InputBox("Body Text?")
.BusyStatus = olFree
.GetRecurrencePattern.RecurrenceType = olRecursMonthly
.Save
End With
Set ol = Nothing
End Sub


You'll also need to set up a reference to the Outlook object library in Word
vba to run the code.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

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


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar reminder won't go away MelKel Microsoft Outlook Calendar 1 19th Sep 2008 08:54 PM
calendar/reminder richk Freeware 26 16th Jun 2006 02:51 PM
I set default reminder on calendar but the reminder still doesn't. =?Utf-8?B?U2FyYWhXRA==?= Microsoft Outlook Calendar 0 13th Jan 2005 10:49 AM
reminder in Calendar =?Utf-8?B?UiBTdGVlbGU=?= Microsoft Outlook Calendar 4 13th Dec 2004 04:20 PM
Calendar Reminder Loren Kallwick Microsoft Outlook Discussion 1 29th May 2004 12:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:48 PM.