We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Sub GetCalendarItems() Dim myOLApp As Outlook.Application Dim myNameSpace As Outlook.NameSpace Dim myAppointments As Outlook.Items Dim myItems As Outlook.Items Dim MyItem As Object Set myOLApp = CreateObject("Outlook.Application") Set myNameSpace = myOLApp.GetNamespace("MAPI") Set myAppointments = myNameSpace.GetDefaultFolder(olFolderCalendar).Items Set myItems = myAppointments.Restrict("[start] >= '01/06/2007'") myItems.Sort ("[start]") For Each MyItem In myItems MsgBox "Date: " + format(MyItem.Start,"dd/mm/yy") MsgBox "Subject: " + MyItem.Subject MsgBox "Categories: " + MyItem.Categories MsgBox "Body: " + MyItem.Body Next Set myOLApp = Nothing Set myNameSpace = Nothing Set myAppointments = Nothing Set myItems = Nothing End sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.