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

Outlook.Selection Recurring Appointment



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 28th 07, 08:02 AM posted to microsoft.public.outlook.program_vba
BDC
external usenet poster
 
Posts: 1
Default Outlook.Selection Recurring Appointment

I need to identify the currently selected instance of a recurring
appointment. The following code always returns the original AppointmentItem
not the recurrence.

Public Sub DisplayItemInfo()
' display the props of the current item

Dim myolApp As Outlook.Application
Dim myOlExplorer As Outlook.Explorer
Dim myOlSel As Outlook.Selection
Dim myOlItem
Dim myProp As Outlook.UserProperty

Set myolApp = Outlook.Application
Set myOlExplorer = myolApp.ActiveExplorer
Set myOlSel = myOlExplorer.Selection

For Each myOlItem In myOlSel
With myOlItem
Debug.Print
"_________________________________________________ _______________________"
Debug.Print .Start & " - " & .End & ": " & vbTab & .Subject
Debug.Print " EntryID = " & .EntryID
Debug.Print " StoreID = " & myOlExplorer.CurrentFolder.StoreID
Debug.Print "MessageClass = " & .MessageClass
Debug.Print "IsRecurring = " & .IsRecurring
End With
Next myOlItem

End Sub

 




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
outlook is changing every appointment to recurring janhorwood Outlook - Calandaring 1 March 11th 07 02:05 PM
PRINT A RECURRING APPOINTMENT IN OUTLOOK Jim Outlook - Calandaring 1 February 25th 07 08:17 PM
Recurring outlook appointment keri Outlook - General Queries 2 January 24th 07 08:21 PM
Recurring appointment on outlook Deza Outlook - Calandaring 0 January 23rd 07 08:29 AM
Recurring appointment/events linked to other recurring appointment uaewhitey Outlook - Calandaring 0 February 2nd 06 07:55 PM


All times are GMT +1. The time now is 05:59 AM.


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.