A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Macro to create repeating calender event/meeting



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 17th 06, 03:43 PM posted to microsoft.public.outlook.program_vba
Graham
external usenet poster
 
Posts: 37
Default Macro to create repeating calender event/meeting

I'm looking to create a repeating meeting with a slightly odd repition cycle.

What I need is a meeting that falls on the last friday of every month IF the
last day of the month falls on a Friday - Tuesday.

If, however, the last day of the month falls on a wednesday or Thursday, I
need the meeting to occur on the First friday of the following month.

I know this would be easy enough to set up manually, one month at a time,
but the problem is that I need to do this at least five years into the
future. (Don't ask why, not my decision)

Is there any way I can do this via a macro / VBA, or am I doomed to spend a
morning devoted to making Outlook meetings?
  #2  
Old March 17th 06, 03:45 PM posted to microsoft.public.outlook.program_vba
Graham
external usenet poster
 
Posts: 37
Default Macro to create repeating calender event/meeting

Sorry, should note I'm using Outlook 2003. I'm sure that will have an effect
of some sort.

"Graham" wrote:

I'm looking to create a repeating meeting with a slightly odd repition cycle.

What I need is a meeting that falls on the last friday of every month IF the
last day of the month falls on a Friday - Tuesday.

If, however, the last day of the month falls on a wednesday or Thursday, I
need the meeting to occur on the First friday of the following month.

I know this would be easy enough to set up manually, one month at a time,
but the problem is that I need to do this at least five years into the
future. (Don't ask why, not my decision)

Is there any way I can do this via a macro / VBA, or am I doomed to spend a
morning devoted to making Outlook meetings?

  #3  
Old March 17th 06, 04:11 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Macro to create repeating calender event/meeting

Unfortunately the RecurrencePattern binary doesn't support that complex a
recurrence. If you can't create it in the UI you can't create it in code.
Version of Outlook doesn't matter, the RecurrencePattern binary hasn't
changed since Schedule+.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Graham" wrote in message
...
I'm looking to create a repeating meeting with a slightly odd repition
cycle.

What I need is a meeting that falls on the last friday of every month IF
the
last day of the month falls on a Friday - Tuesday.

If, however, the last day of the month falls on a wednesday or Thursday, I
need the meeting to occur on the First friday of the following month.

I know this would be easy enough to set up manually, one month at a time,
but the problem is that I need to do this at least five years into the
future. (Don't ask why, not my decision)

Is there any way I can do this via a macro / VBA, or am I doomed to spend
a
morning devoted to making Outlook meetings?


  #4  
Old March 17th 06, 04:49 PM posted to microsoft.public.outlook.program_vba
Graham
external usenet poster
 
Posts: 37
Default Macro to create repeating calender event/meeting

Hmm... well, would there be a way to work around it if I didn't need the
meetings all to be a true "series"? I was thinking something along the lines
of:

With (all months between date and date2)
If (month ends on fri/sat/sun/mon/tues) then
Create new meeting on last friday of month
Else if (month ends on a wednesday/thursday)
goto new month
Create new meeting on first friday of month
End if
End With

All I really need are for the meeting discriptions the same, whether they
are all linked doesn't matter. Sadly, I don't know the know the code well
enough to attempt this sort of thing on my own.

Thanks for your help!

"Ken Slovak - [MVP - Outlook]" wrote:

Unfortunately the RecurrencePattern binary doesn't support that complex a
recurrence. If you can't create it in the UI you can't create it in code.
Version of Outlook doesn't matter, the RecurrencePattern binary hasn't
changed since Schedule+.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Graham" wrote in message
...
I'm looking to create a repeating meeting with a slightly odd repition
cycle.

What I need is a meeting that falls on the last friday of every month IF
the
last day of the month falls on a Friday - Tuesday.

If, however, the last day of the month falls on a wednesday or Thursday, I
need the meeting to occur on the First friday of the following month.

I know this would be easy enough to set up manually, one month at a time,
but the problem is that I need to do this at least five years into the
future. (Don't ask why, not my decision)

Is there any way I can do this via a macro / VBA, or am I doomed to spend
a
morning devoted to making Outlook meetings?



  #5  
Old March 18th 06, 07:49 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Macro to create repeating calender event/meeting

Play with it in the UI and create the combination of recurring items you
need. Then you can use their RecurrencePattern properties to do what you
want. It's a nice empirical way to learn the recurrence pattern oddities.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Graham" wrote in message
...
Hmm... well, would there be a way to work around it if I didn't need the
meetings all to be a true "series"? I was thinking something along the
lines
of:

With (all months between date and date2)
If (month ends on fri/sat/sun/mon/tues) then
Create new meeting on last friday of month
Else if (month ends on a wednesday/thursday)
goto new month
Create new meeting on first friday of month
End if
End With

All I really need are for the meeting discriptions the same, whether they
are all linked doesn't matter. Sadly, I don't know the know the code well
enough to attempt this sort of thing on my own.

Thanks for your help!


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I setup customized/no pattern repeating meeting in Outlook? Asiago Outlook - Calandaring 1 February 22nd 06 10:04 PM
Meeting requests and calender Venkat Nishtala Outlook - Calandaring 0 February 13th 06 09:19 AM
How do I cancel a meeting, but still make it appear in calender prs Outlook - Calandaring 3 January 26th 06 02:48 PM
Create a macro that runs from a Rule CF_business_analyst Outlook and VBA 8 January 13th 06 06:12 PM
Create Calendar event tk Outlook - Calandaring 1 January 11th 06 05:51 PM


All times are GMT +1. The time now is 09:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.