Chinaunix首页 | 论坛 | 博客
  • 博客访问: 47875
  • 博文数量: 28
  • 博客积分: 760
  • 博客等级: 军士长
  • 技术积分: 300
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-05 17:46
文章分类

全部博文(28)

文章存档

2017年(1)

2010年(7)

2009年(10)

2008年(10)

我的朋友

分类:

2008-11-26 23:05:30

To create new Task item in Outlook.
You can download source from here.

Dim oOutlook
Dim oTaskitem

Set oOutlook = CreateObject("Outlook.Application")
Set oTaskitem = oOutlook.CreateItem(3)
'We must according to this order to create task with reminder.
'And we should set the start date and duedate before reminder setting.
'1) ReminderSet = True
'2) ReminderTime = CDate("2008-11-29 17:00")
With oTaskitem
    .Body = "body"
    .Subject = "subject"
    .StartDate = CDate("2008-11-29 18:00")
    .DueDate = CDate("2008-11-30 18:00")
    .TeamTask = True    
    .ReminderSet = True
    .ReminderOverrideDefault = True
    .ReminderTime = CDate("2008-11-29 17:00")
    .Save
    .Display
End With
Set oOutlook = Nothing
Set oTaskitem = Nothing

阅读(524) | 评论(0) | 转发(0) |
0

上一篇:ATTRIB

下一篇:沁园春——买票 (转帖)

给主人留下些什么吧!~~