How to get meeting timing from outlook calendar for a particular day?

조회 수: 5 (최근 30일)
Nipurn Gulgulia
Nipurn Gulgulia 2018년 5월 9일
댓글: Nipurn Gulgulia 2018년 5월 11일
I want to write a script which will give user all the meetings scheduled for a particular day!
h = actxserver('outlook.Application')
namespace = h.GetNamespace('MAPI');
Calendars = namespace.GetDefaultFolder('olFolderCalendar')

답변 (1개)

ES
ES 2018년 5월 10일
편집: per isakson 2018년 5월 11일
You may use
Calendars.Items.GetFirst,
Calendars.Items.GetNext,
Calendars.Items.GetLast
etc.
Example:
>> Calendars.Items.GetLast.Duration
ans =
120
>> Calendars.Items.GetLast.Start
ans =
9/20/2016 10:30:00 AM
>> Calendars.Items.GetLast.End
ans =
9/20/2016 12:30:00 PM
  댓글 수: 2
Nipurn Gulgulia
Nipurn Gulgulia 2018년 5월 11일
편집: Nipurn Gulgulia 2018년 5월 11일
Thank you very much. :) Can you also tell me how to get meeting data for a particular date ? I tried few things but not able to do without comparing every date with required one!
Nipurn Gulgulia
Nipurn Gulgulia 2018년 5월 11일
By this way, i am not able to get info of all the meetings if there is more than one meetings on a particular day!
x = Calendars.Items;
while ~strfind( x.GetNext.Start, '5/4/2018')
x.GetNext.Start;
end

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Calendar에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by