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

Can I determine if an item is in a shared calendar?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 8th 09, 08:02 AM posted to microsoft.public.outlook.program_vba
Tadwick
external usenet poster
 
Posts: 104
Default Can I determine if an item is in a shared calendar?

Given an item object, can I programmatically determine if it belongs to the
current user or is in a shared folder?
Ads
  #2  
Old July 8th 09, 08:50 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Can I determine if an item is in a shared calendar?

If you are using Outlook 2007, read the Parent property (returns MAPIFolder
object), then read the MAPIFolder.Store.ExchangeStoreType property - check
whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Tadwick" wrote in message
...
Given an item object, can I programmatically determine if it belongs to
the
current user or is in a shared folder?



  #3  
Old July 8th 09, 03:59 PM posted to microsoft.public.outlook.program_vba
Tadwick
external usenet poster
 
Posts: 104
Default Can I determine if an item is in a shared calendar?

Thanks, Dmitry - I will try that

"Dmitry Streblechenko" wrote:

If you are using Outlook 2007, read the Parent property (returns MAPIFolder
object), then read the MAPIFolder.Store.ExchangeStoreType property - check
whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Tadwick" wrote in message
...
Given an item object, can I programmatically determine if it belongs to
the
current user or is in a shared folder?




  #4  
Old July 8th 09, 04:56 PM posted to microsoft.public.outlook.program_vba
Tadwick
external usenet poster
 
Posts: 104
Default Can I determine if an item is in a shared calendar?

Dmitry,

This doesn't work for shared folders:


http://msdn.microsoft.com/en-us/libr...r.store. aspx



"Tadwick" wrote:

Thanks, Dmitry - I will try that

"Dmitry Streblechenko" wrote:

If you are using Outlook 2007, read the Parent property (returns MAPIFolder
object), then read the MAPIFolder.Store.ExchangeStoreType property - check
whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Tadwick" wrote in message
...
Given an item object, can I programmatically determine if it belongs to
the
current user or is in a shared folder?




  #5  
Old July 9th 09, 08:24 AM posted to microsoft.public.outlook.program_vba
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Can I determine if an item is in a shared calendar?

Hmmm.. So when you get Null from Folder.Store, you have a delegate folder...

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Tadwick" wrote in message
...
Dmitry,

This doesn't work for shared folders:


http://msdn.microsoft.com/en-us/libr...r.store. aspx



"Tadwick" wrote:

Thanks, Dmitry - I will try that

"Dmitry Streblechenko" wrote:

If you are using Outlook 2007, read the Parent property (returns
MAPIFolder
object), then read the MAPIFolder.Store.ExchangeStoreType property -
check
whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Tadwick" wrote in message
...
Given an item object, can I programmatically determine if it belongs
to
the
current user or is in a shared folder?





  #6  
Old July 9th 09, 08:44 AM posted to microsoft.public.outlook.program_vba
Tadwick
external usenet poster
 
Posts: 104
Default Can I determine if an item is in a shared calendar?

yeah, that's the logic I'm running with

"Dmitry Streblechenko" wrote:

Hmmm.. So when you get Null from Folder.Store, you have a delegate folder...

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Tadwick" wrote in message
...
Dmitry,

This doesn't work for shared folders:


http://msdn.microsoft.com/en-us/libr...r.store. aspx



"Tadwick" wrote:

Thanks, Dmitry - I will try that

"Dmitry Streblechenko" wrote:

If you are using Outlook 2007, read the Parent property (returns
MAPIFolder
object), then read the MAPIFolder.Store.ExchangeStoreType property -
check
whether it is olPrimaryExchangeMailbox vs olExchangeMailbox.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
"Tadwick" wrote in message
...
Given an item object, can I programmatically determine if it belongs
to
the
current user or is in a shared folder?






 




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
I cant create new item in shared calendar sbuldakov Outlook - Calandaring 2 February 3rd 09 08:54 AM
How to determine if a sent item comes from a shared inbox folder [email protected] Add-ins for Outlook 3 November 10th 08 04:18 PM
OL2007 - determine if shared calendar folder has been cached Tadwick Outlook and VBA 1 November 7th 08 10:03 AM
Determine the source from an item with VB.Script Oskar Vaia Outlook - Using Forms 1 August 14th 08 03:38 AM
Determine if an Item is New dch3 Outlook - Using Forms 1 July 26th 07 04:17 AM


All times are GMT +1. The time now is 04:35 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.