Open Recurring appointment series

J

Juergen Thelen

By using Restrict and Find I get a Collection of all appointsments of a day.
If I use item.Display, Outlook opens only the appointment of that day, but I
want to open the series. How can I do this?
Please, can someone help me?

Juergen Thelen

P.S. I am using VBScript
 
K

Ken Slovak - [MVP - Outlook]

Get the .RecurrencePattern object for that recurring series of
appointments and use the RecurrencePattern.GetOccurrence(StartDate As
Date) method to open each item in the series. You will have to parse
the RecurrencePattern to get the StartDate values.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 
J

Juergen Thelen

Thanks, but sorry, this is a little missunderstanding (my Englisch...)

I try to explain it a little bit more detailed.

I want to have a silmilar situation like in Outlook, when you press ENTER in
the calendar at a recurring appointment:
Before it opens you get a litte dialog with the question to open this
appointment or the series.
If you choose "series" the dialog opens in a different way.
Here you can make changes in o n e dialog that affects to all the
appointments of that series.

So, the usual appointment dialog should appear, but the user must be asked
before in which mode.

Thanks again

Juergen Thelen


Ken Slovak - said:
Get the .RecurrencePattern object for that recurring series of
appointments and use the RecurrencePattern.GetOccurrence(StartDate As
Date) method to open each item in the series. You will have to parse
the RecurrencePattern to get the StartDate values.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm


Juergen Thelen said:
By using Restrict and Find I get a Collection of all appointsments of a day.
If I use item.Display, Outlook opens only the appointment of that day, but I
want to open the series. How can I do this?
Please, can someone help me?

Juergen Thelen

P.S. I am using VBScript
 
K

Ken Slovak - [MVP - Outlook]

That dialog isn't accessible to the Outlook object model. What you
would have to do is completely create everything yourself. You would
have to test for a recurring item when the Open event fires for the
item and show a dialog yourself and then open either the specified
appointment or the master item in the series.

See the Object Browser Help for GetOccurrence to see some code and an
explanation of what happens when you open items using GetOccurrence.
You can see how that is different than opening a specific instance of
the recurring appointment on a specific date and time.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top