Outlook 2003,
VB here's a sample of the code. I removed the 2nd invite as it's the same
thing.
I'm looking up selfcert stuff for Outlook. Think it will work?
Sub Expire_Reminder()
Dim App
Dim Appmt
Dim FLName
Dim CompanyName
Dim DocType
Dim ExpireDate
Set App = CreateObject("Outlook.application")
Set Appmt = App.CreateItem(olAppointmentItem)
Appmt.MeetingStatus = olMeeting
FLName = InputBox("Enter First Last Name", "Name")
If FLName = "" Then Exit Sub
CompanyName = InputBox("Enter the Company Name", "Company Name")
If CompanyName = "" Then Exit Sub
DocType = InputBox("Enter one of the following Doc Types" &
Chr(13) & "WP, TRV, VR, TRP, SP or OTHER", "DocType")
Check = False
Do While Check = False
ExpireDate = InputBox("Enter Expire Date, Format: DD/MM/YYYY", "Document
Expire Date")
If IsDate(ExpireDate) = True Then Exit Do
If ExpireDate = "" Then Exit Sub
'Check if Value is a date
If IsDate(ExpireDate) = False Then
MsgBox "Sorry, but you did not enter a valid date."
End If
Loop
Dim ExpireDate1
Dim ExpireDate2
'Minus 90 days and store, minus 7 days and store
ExpireDate1 = DateAdd("d", -7, ExpireDate)
' Set app at start of day and uniquely identify Meeting item with *!* to
help processing
Appmt.Start = ExpireDate1 & " 8:00"
Appmt.Subject = "*!* " & FLName & " " & CompanyName & " " & DocType
Appmt.Duration = 15
Appmt.BusyStatus = Free
' Set app at start of day and uniquely identify Meeting item with *!* to
help processing
Set myRequiredAttendee = Appmt.Recipients.Add("TEST")
myRequiredAttendee.Type = olRequired
Set myRequiredAttendee1 = Appmt.Recipients.Add("TEST")
myRequiredAttendee1.Type = olRequired
Set myRequiredAttendee2 = Appmt.Recipients.Add("TEST")
myRequiredAttendee2.Type = olRequired
' Set as free time duration short 15 mins
Appmt.AllDayEvent = "false"
Appmt.ReminderSet = True
Appmt.ReminderMinutesBeforeStart = 15
' Send and save Meeting request
Appmt.Send
Appmt.Save
' Clear memory
Set Appmt = Nothing
Set App = Nothing
End Sub