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

anothers user's calendar



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 15th 06, 10:15 PM posted to microsoft.public.outlook.program_vba
Guest
 
Posts: n/a
Default anothers user's calendar

Hi all,

Situation:
USER A has opened in Exchage enviroment USER B's calendar
My script gets the folder object by
Application.ActiveExplorer.CurrentFolder
By Fld.Name the script gets the nme of the folder.
But how can the script get "USER B" as the "owner" of the calendar?

P.S. I can not assume that CDO is installed on the system.

Thanks

J. Thelen


  #2  
Old November 16th 06, 03:42 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default anothers user's calendar

One hack you can use is to get the StoreID of that Calendar folder and
convert the string value into a byte array. Then convert back to string
characters so you get text values instead of the hex. Inside the StoreID
would be the string "EMSMDB.DLL" that indicates it's an Exchange store.
There also would be the Exchange distinguished name for the mailbox, which
would end in something like: "/cn=EXalias" where EXalias is the name of the
mailbox.

Look over the StoreID's for some different mailbox using a MAPI viewer such
as OutlookSpy (www.dimastr.com) and view the Text tab for the property value
to see what I mean.

--
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


wrote in message ...
Hi all,

Situation:
USER A has opened in Exchage enviroment USER B's calendar
My script gets the folder object by
Application.ActiveExplorer.CurrentFolder
By Fld.Name the script gets the nme of the folder.
But how can the script get "USER B" as the "owner" of the calendar?

P.S. I can not assume that CDO is installed on the system.

Thanks

J. Thelen



  #3  
Old November 19th 06, 12:47 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default anothers user's calendar

I posted a StoreID hacking code sample just this week -- http://www.outlookcode.com/codedetail.aspx?id=1434

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ken Slovak - [MVP - Outlook]" wrote in message ...
One hack you can use is to get the StoreID of that Calendar folder and
convert the string value into a byte array. Then convert back to string
characters so you get text values instead of the hex. Inside the StoreID
would be the string "EMSMDB.DLL" that indicates it's an Exchange store.
There also would be the Exchange distinguished name for the mailbox, which
would end in something like: "/cn=EXalias" where EXalias is the name of the
mailbox.

Look over the StoreID's for some different mailbox using a MAPI viewer such
as OutlookSpy (www.dimastr.com) and view the Text tab for the property value
to see what I mean.


wrote in message ...
Hi all,

Situation:
USER A has opened in Exchage enviroment USER B's calendar
My script gets the folder object by
Application.ActiveExplorer.CurrentFolder
By Fld.Name the script gets the nme of the folder.
But how can the script get "USER B" as the "owner" of the calendar?

P.S. I can not assume that CDO is installed on the system.

Thanks

J. Thelen



  #4  
Old November 19th 06, 06:51 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default anothers user's calendar

Very cool, Sue. I've been using the technique for years. It's very useful.

--
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


"Sue Mosher [MVP-Outlook]" wrote in message
...
I posted a StoreID hacking code sample just this week --
http://www.outlookcode.com/codedetail.aspx?id=1434

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


 




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 can I view another user's secondary calendar? Walter Outlook - Calandaring 3 October 19th 06 05:06 PM
Cannot access another user's calendar artgrl8163 Outlook - Calandaring 2 August 24th 06 02:21 PM
importing a file to anothers persons contact in Outlook carolynk Outlook - Using Contacts 2 June 6th 06 03:42 PM
Viewing Other User's Calendar. Karen Outlook - Calandaring 3 March 13th 06 05:38 AM
Other user's calendar CapsLock Outlook - Calandaring 0 February 12th 06 01:35 PM


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