#1
|
|||
|
|||
Can Outlook create other appointments from one entry?
At my law firm, when we get a trial date, we have quite a few other appointments that are created based on that date. For instance, Plaintiff Expert Witness Deadline is 120 days before the trial, motions for summary judgment deadline is 90 days before trial, etc.
Is there any way to set an appointment for the trial date and then have other appointments generated based on that appointment entry date? I just hate having to create 15 other appointments if I can help it. Many thanks! |
#2
|
||||
|
||||
The short answer is yes, but in order to assist we would need more information. Do we take it that one trial date creates 16 appointments?
Are there always the same number of appointments with the same delay period? What is the information to be recorded in the appointments? Do the appointments create attendees and thus e-mail messages?
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
The short answer is yes, but in order to assist we would need more information. Do we take it that one trial date creates 16 appointments?
YES. for one trial date, there will be 16 other appointments. Are there always the same number of appointments with the same delay period? Some of the appointments may have a 31 day delay, 90 day delay, 180 day delay, etc. but for all cases, the delays will be the same amount of days from the date of trial for each appointment type. What is the information recorded in the appointments? The information recorded will have the standard brief case info for each appointment -- "123-456 Smith v. Jones" and also the specific appointment type "Plaintiff Expert Witness Deadline," "Motions in Limine Deadline," etc. Andrea |
#4
|
||||
|
||||
OK - based on the information you have provided, you need a macro something like the following. This prompts for the case details and a trial date and then creates the appointments. I have included the two deadlines for which you have supplied data. You will need to add the additional deadlines by copying the line to where it says 'etc
CreateAppointment strCase & " - Plaintiff Expert Witness Deadline", CStr(dStart - 120) and changing the data in red to the type of deadline and the number of days before the trial as appropriate. It could be made more sophisticated, but this will do the job. Code:
Option Explicit Sub CreateTrialAppointments() Dim strDate As String Dim dStart As Date Dim iDelay As Integer Dim strCase As String strCase = InputBox("Enter Case") strDate = InputBox("Enter Trial Date - 'mm/dd/yyyy'") If IsDate(strDate) Then dStart = CDate(strDate) CreateAppointment strCase & " - Trial Date", strDate CreateAppointment strCase & " - Plaintiff Expert Witness Deadline", CStr(dStart - 120) CreateAppointment strCase & " - Motions for Summary Judgment Deadline", CStr(dStart - 90) 'etc End If lbl_Exit: Exit Sub End Sub Private Sub CreateAppointment(strSubject As String, _ strDate As String) Dim olItem As AppointmentItem Set olItem = CreateItem(olAppointmentItem) With olItem .MeetingStatus = olNonMeeting .Subject = strSubject .Start = strDate .AllDayEvent = True .Save End With Set olItem = Nothing lbl_Exit: Exit Sub End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I create form entry for a word document | trw92a | Word | 2 | 01-17-2016 07:11 PM |
How do I create a field entry that replaces a text? | bananajelly | Word | 2 | 10-01-2015 06:52 PM |
Create bibliography entry from URL, ISBN, etc. | moonman239 | Word | 0 | 03-05-2015 02:03 PM |
How to create a Main category mirrored in Sub category data entry type of solution? | Geza59 | Excel | 0 | 10-19-2012 05:44 AM |
Customising Outlook Appointments | Swops | Outlook | 0 | 10-26-2011 03:28 AM |