VBA, Outlook, Seeing 'People's Calendars -


i tring programmatically (with vba) access calendars others share me. listed in outlook under 'people's calendars.' have searched web , suggestions have done little more confuse me. how can listing of calendars shared me, , 1 calendar in specific, among 'people's calendars'?

check out returned values following code. searches person name, same way when typing recipient new email, , grabs persons shared calendar , enumerates shared appointments.

dim _namespace outlook.namespace dim _recipient outlook.recipient dim calendarfolder outlook.folder  set _namespace = application.getnamespace("mapi") set _recipient = _namespace.createrecipient(name) _recipient.resolve  if _recipient.resolved     set calendarfolder = _namespace.getshareddefaultfolder(_recipient, olfoldercalendar)     'this display calendar on screen:     'calendarfolder.display      dim oitems outlook.items     set oitems = calendarfolder.items     'oitems set of appointments in person's calendar     'play on end if 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -