|
楼主 |
发表于 2013-7-18 13:09
|
显示全部楼层
在坛子里泡了一天,已实现,特结贴
宏内容:- Sub ScheduleMeeting()
- Dim rowCount, endRowNo
- Dim myOlApp As New Outlook.Application
- Dim myItem As AppointmentItem
- endRowNo = Cells(1, 1).CurrentRegion.Rows.Count
- Set myOlApp = New Outlook.Application
- For rowCount = 2 To endRowNo
- Set myItem = myOlApp.CreateItem(olAppointmentItem)
- myItem.MeetingStatus = olMeeting
- myItem.Recipients.Add Cells(rowCount, 2)
- myItem.Subject = Cells(rowCount, 3)
- myItem.Start = Cells(rowCount, 4)
- myItem.Location = Cells(rowCount, 5)
- myItem.Duration = Cells(rowCount, 6)
- myItem.Body = Cells(rowCount, 7)
- myItem.Send
- Next
- End Sub
复制代码 excel格式:
姓名 电子邮件 主题 会议时间 会议地点 会议时长 邮件内容
*** ***<***@163.com> 新人培训 2013-7-18 14:00 4F-B2-01 90 "
您好:
请您按照约定时间参加培训
"
|
|