Recurring Appointments that don't fit a pattern

Would you like to make recurring appointments that don't fit a pattern

  • Yes

    Votes: 10 76.9%
  • No

    Votes: 3 23.1%

  • Total voters
    13
  • Poll closed .
Status
Not open for further replies.

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
I have this starter macro - Create Outlook appointments using multiple recurring patterns - i call it a starter because it doesn't quite work as i intended and I haven't had time to fix it. I have another one that makes several appt or tasks in an uneven pattern, something like a lawyer might need to set up appt prior to a court case - 2 weeks before, 1 week out, 3 days out, day before. It's messy right now (needs converted to use an array, when i get a chance).
 

htd01

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
That's good work from what I can see, but what if you started with a basic form that allows you to select a Vague Recurrence Pattern?( Every blank blank of blank ), and then allow them to set the irregular ones by selecting whether or not to move the event in another form? Allowing the macro to run on a selected event or several selected events can automate things even further by cycling through all the events that need to Recur, and should allow the Form to run once for each set, along with setting every recurrence and allowing you to click a button to move through them. In the VBA code, you can set up some kind of Marker in the HEADER that creates an Identifier you can use to sort through a particular recurring series. You can use an "Update Recurrence" Macro to apply updates to the recurring series as needed by searching through all appointments (this assumes you added some tag to the end of the filename to match against), then match to the subject, and it won't lose exceptions that hold special notes, since they are all singular appointment events. I'll send you my macro for sending out the appointments, you may want to use it to Fwd Instead, but I like the send ( I suggest you add a question of how many to send right away and cycle through those, then strip the recipients from the rest of them, send to only the resources, and re-apply the recipients); my example is just a start but may help you. If you treat regular and irregular the same, and only use a "Vague" description of the recurrence first, you can use the controls to move or skip one recurrence wherever you want. It would be full featured, and using cycle For loops that pick out selected items, you can make the interface intuitive, Saving the appointments and sending the meetings.

My VBA: View attachment send all VBA.txt

Use that to send meetings only. You can adjust it to save the appointments too.
 

larry

Senior Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
That will work - you just need to get the dates into an array in some manner then create the appointments. The problem is that it gets complicated.

I haven't had a chance to test your code sample, but will check it out when i get a chance.
 

htd01

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Your ARRAY is the Calendar folder. You can cycle through all items in it. If you build by a post test loop that tests the endpoint of the events, you can cycle on through. If you allow it to pull the data from a currently selected event, you can re-run this to push the recurrences further into the future ( so you can continue recurring again and again until the whole cycle is over), and it will create an event for each one. You can mark them, compare data, and even add Secondary Categories in 2010 outlook. That way you can cycle both your category and another (allowing them to change even the subject so they can update it). Now you've got a simple way to update all of them, and if you use an outer loop based on the date of the selected item or today, it will only update future items. For lawyers, this is key, as it will keep an accurate record of the event information at the time of the event. This can be archived with a test that checks backward to a certain length, and then runs a report of all events before deleting them, saving on email server space, and keeping a legal record of the data.

You can even work across multiple calendars.

Eg.

sub begin

Dim myOuterFolder As Object

Dim myInnerFolder As Object

Dim myItem As Object

For Each myInnerFolder in myOuterFolder
For Each myItem in myInnerfolder
Do something with it
next

next

end

If the Calendar folder is the outer array, and the calendar itself (which is a folder) is the inner array, and the items are the data in the inner array (appointment items), these become the cycle you can use for your update macro. Now, imagine that you just had some simple numbers to control the creation macro:

Sub Begin

Dim dateCurrentItem as DATEVALUE

Dim dateEndItems as DATEVALUE

*\\ Right here you would SET dateCurrentItem to the startdate of your starting appt, next you will add 1year to it, then set dateEndItems to that new value, and set dateCurrentItem back to the start-date of your first appointment (the one selected)

Dim recurPattern as *\\right here you can specify it as a Form based selection

Do

*\\here, you can build the first new appointment in the next part of the form by showing the date built from a recurPattern selection-->switch statement that allows them to continually change the occurrence pattern for the next event

*\\you can allow them to change the date in the Form by typing it in, the time as well, and you can continually poll for their conflict property (possibly with a button to show a message-box with info on the conflicts)

*\\create the event by copying the information properties from the original (test what type: appointment or Meeting) and apply recipients as well

*\\now you can send\Save if you like and the event is created, just be sure to set some marker to identify it as a recurring event from your program

*\\If they set an endpoint for the recurrences or a last occurrence date, you can set that variable now and move on to the test; this allows for active and constant adjustment of the booking window

While dateCurrentItem >= dateEndItems

*\\Post Test Loop: it will happen at least once but can be stopped with a Break statement linked to a DONE button

*\\I recommend running the loop from the send all function here

End

If you are worried about Resources being booked, there's an answer for that to. When you run Update, Don't update the Resources right away. You could create a message that asks about added or changed resources and then move to a form to process it. Now you can update those that match the old resource, and if there are a few that were changed on their own, show them and ASK IF they should be changed as well, and then act on that. Now any that denied resources initially and had a resource change to make them workable will get updated for information but not resource, or they will get moved to a better resource.
 

larry

Senior Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server
The array would hold the vague pattern.

Do you have a working code sample so we can see it in action?
 

htd01

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
I see what you're getting at. Unfortunately I'm not entirely familiar with VBA beyond some basic functions. I was speculating on the design. I see where you're array is coming from. You'd have to hold either the date values, or at least a method to create an odd recurrence. If you build on the original recurrence programming, you'll be able to link them all easily enough. THe hard part is building the array processing for that. It took me a little while to read up on the VBA for the outlook recurrence pattern.

The only alternate route (Create as single events) would be to use an array of integers that conform to date values. When you have a start date (First Occurrence), you can use a vague pattern, and use that to translate into new values that continue until the end date (not necessarily the last occurrence). You'd then have to output that to a file with the subject heading and some kind of delineation as the file-name, and when updating, you just pull the file (create an array of filenames and store it; then check for it when an appointment is selected, and run a subroutine asking which values in others should be rewritten, or added to; you can go one by one or do all). This requires a VBA agent subroutine to check for appointments constantly, and find out if one is open that fits the recurrence.

You're better off with the normal recurrence pattern adjustments. Use the built in Recurrence patterns and use a default setting, then select the first recurrence (second occurence of the appointment), edit the details, set the exceptions flags, save, open the next, and so on as you make changes; Then allow them to send all the meetings, or just save appointments.
 

ECM

Member
Outlook version
Email Account
Exchange Server
Hi all, Let me begin by apologising if this is the incorrect thread to post this in....I have been looking all day for an answer and have gotten nowhere...I need to create an appointment (Outlook 2007) that occurs every 1, 3, 6, 9, and 11 months from a given date. The purpose is to remind project team members to complete a task due at these intervals, and to attend a subsequent meeting. Ideally, the email remainder for each appointment would be sent one week before the appointment date, to allow the project team to prepare. Obviously, the limitations on the Outlook recurrence patterns are a hindrance to achieving this. Please note that this appointment pattern will be used across many projects, all starting at different times. Any ideas? I have looked around code sites and cannot find exactly what I am after (I am far from a VBA expert, but may be able to get some assistance from my IT team). There may also be some Outlook add-on products that can help, but I cannot determine which ones. It seems like I want to add a customized option in the Recurrence Pattern field, but not sure if this is even possible....Anyway, all roads today seem to have lead to this forum. Many thanks in advance.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
S Changing colors of today's appointments, but not recurring ones Using Outlook 33
F Year-and-a-day recurring appointments Using Outlook 1
M Expected behaviour of recurring appointments? Using Outlook 2
M How to skip weekends on recurring appointments - OL2010? Using Outlook 4
D Priting only Recurring Appointments in Outlook Calendar 2010 Using Outlook 1
B weekday recurring appointments Using Outlook 1
J Recurring Appointments With A Twist Using Outlook 3
G Weekly recurring appointments based on 6 month rotation Using Outlook 2
F Outlook 2007 - recurring appointments shifted by one day Using Outlook 4
S exceptions to recurring appointments in calendar Using Outlook 1
S Outlook 2016 Understand and customize prepended behavior of recurring task Using Outlook 0
J Recurrence pattern blank on recurring meetings? Using Outlook 4
G Schedule recurring email and attachments display Outlook VBA and Custom Forms 3
V Outlook 2016 Multiple recurring tasks getting created Using Outlook 0
G Recurring tasks break links Outlook 2016 Using Outlook 5
A Unable to save recurring Meeting to Documents folder due to error Using Outlook 2
K Recurring all day annual event Using Outlook 3
P Restore an individual all-day recurring event Using Outlook 2
P Receiving a Meeting Declined notice for a recurring meeting Using Outlook 0
N Recurring invite sent w/distribution list adding/removing attendees Using Outlook 0
C Recurring Task End Date Varies Using Outlook 3
K Outlook 2013 Recurring Tasks Not Showing Complete Outlook.com Using Outlook.com accounts in Outlook 1
G how to cancel a recurring meeting but not the organizer but all attendees need to know. Using Outlook 1
L Recurring Tasks lost Using Outlook 3
M Recurring icon for custom form task item Outlook VBA and Custom Forms 6
Diane Poremsky Scheduling a Recurring Message Using Outlook 0
Diane Poremsky Scheduling a Recurring Message Using Outlook 0
L Who Deleted My Recurring Meeting? Exchange Server Administration 6
T outlook cal for mac changes times of recurring meetings on its own Using Outlook 1
F Recurring meeting with recurring prep. 2 days before Using Outlook 1
Mr Mayor Another recurring meeting question Using Outlook 1
J Recurring meeting - i require a monthly accept confrimation Using Outlook 1
T The Formatting Changes When A Recurring Appointment is Changed Using Outlook 1
S Modify recurring outlook invites based on form entry Using Outlook 0
S How to script for a recurring task Using Outlook 0
I VBA Recurring Task Converted From Email Using Outlook 2
M Recurring invitations for a recurring meeting Using Outlook 3
M outlook recurring item stucks me. :( Exchange Server Administration 1
M Email address included automatically in the recurring meeting Using Outlook 4
L Setting up recurring meeting for every thursday except 3rd thursday Using Outlook 3
X Can you get outlook to ignore certain weeks for recurring meetings? Using Outlook 1
D Updating a recurring meeting cuses a reminder to be sent for every occurence. Using Outlook 2
P Delete Recurring Meeting Invite Using Outlook 4
A Recurring meeting sending a invite for each meeting Using Outlook 1
D Recurring Tasks Problem? Using Outlook 5
B Restoring Deleted Recurring Event AND Notes Using Outlook 8
O Assigning a single instance of a recurring task OUTLOOK 2010 Using Outlook 3
T How to Use Recurring Email without buying an add-on for Outlook 2010 Using Outlook 1
K Recurring Tasks on specific dates, not pattern Using Outlook 0
S Outlook Recurring event Using Outlook 1

Similar threads

Top