+ Reply to Thread
Results 1 to 2 of 2

Outlook access to shared calendar via VBA

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Outlook access to shared calendar via VBA

    Hi All,
    I would like to create a macro that gets access from Excel to Outlook Calendar (in order to add appointments from worksheet or so). I managed to do that using my own calendar. However, I wish that there were an access for many users.

    I have a calendar shared by another user and I am not able to get access to this (also: he isn't able to open mine, using same script). The code I am using is:

    Please Login or Register  to view this content.
    Following the instructions from plenty of threads I replaced "GetDefaultFolder" with "GetSharedDefaultFolder".
    If I type my name instead of "Another User" it works perfectly, exactly the same as previously. However typing another name brings me a "Run-time error '-2147221233 (8004010f)'": The operation failed" in line "Set olFolder = olNS.GetSharedDefaultFolder(olUser, 9)"


    Has anyone any idea what am I doing wrong? Maybe I type a name in wrong format, but - as I mentioned - using mine in same works, and also resolving works same as it should.

    Or maybe You have an idea how to omit with - I guess - creating special, opened calendar.


    Thank You very much in advance for Your help,

    Andrzej

  2. #2
    Registered User
    Join Date
    08-08-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Outlook access to shared calendar via VBA

    Anyone, any help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Gather data on items in a shared calendar on Outlook 2003
    By gk77 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2013, 09:16 AM
  2. Excel spreadsheet holiday to Outlook Shared Calendar and update spreadsheet
    By tigerdel in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-25-2012, 06:04 AM
  3. Running an Access macro via Excel on a shared Access db
    By koltregaskes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2011, 10:22 AM
  4. Excel Macro - Linking dates from Excel to a Shared Outlook Calendar
    By cg7131 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2011, 11:08 AM
  5. [SOLVED] import calendar items from excel into outlook calendar
    By jsewaiseh in forum Excel General
    Replies: 0
    Last Post: 09-02-2005, 11:05 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1