Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Traceyloo Traceyloo is offline
external usenet poster
 
Posts: 1
Default How do i set up a calendar reminder in word


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default How do i set up a calendar reminder in word

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
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a reminder function in WORD? Jim in Denton Microsoft Word Help 1 December 26th 07 08:29 AM
How do I set up a reminder in a receipants outlook calendar? Pcourtney New Users 1 November 29th 07 08:35 PM
I used a 2006 Word Calendar Template last year, it was calendar wi PADutchman New Users 2 July 15th 06 02:52 AM
Reminder service ginny0001 Microsoft Word Help 1 March 13th 06 06:51 PM
Import Outlook Calendar Appointments into a Word Calendar? Lynn Microsoft Word Help 1 January 23rd 06 10:08 AM


All times are GMT +1. The time now is 06:53 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"