Photo Gallery
Member List
Search
Calendars
FAQ
Ticket List
Log Out
Forums
Register
Login
My Profile
Inbox
Address Book
My Subscription
My Forums
Show Outlook Tasks
Logged in as: Guest
arrSession:exec spGetSession 2,16,62697
Active Users: There are
0
members and
0
guests.
Users viewing this topic: none
Printable Version
All Forums
>>
[Scripting]
>>
Post a VBScript
>> Show Outlook Tasks
Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page:
[1]
Login
Message
<< Older Topic
Newer Topic >>
Show Outlook Tasks -
7/24/2008 2:07:42 AM
p0ng
Posts: 33
Score: 0
Joined: 6/18/2008
Status:
offline
Lists the tasks from MS Outlook
Dim objOutlook Dim objNameSpace Dim objFolder Dim MyItems Dim CurrentTask Dim strOutput Const olTaskItem = 3 Const olFolderTasks = 13 Set objOutlook = CreateObject("Outlook.application") Set objNameSpace = objOutlook.GetNameSpace("MAPI") Set objFolder = objNameSpace.GetDefaultFolder(olFolderTasks) Set MyItems = objFolder.Items For Each CurrentTask in MyItems If CurrentTask.DueDate <= Now And CurrentTask.Complete = False Then strOutput = strOutput & "- " & CurrentTask.Subject & vbCrLf End If Next If strOutput > "" Then Msgbox strOutput, vbExclamation, "Tasks For Today" Else Msgbox "No Tasks Today", vbInformation,"Tasks For Today" End If Set objFolder = Nothing Set objNameSpace = Nothing set objOutlook = Nothing
Post #: 1
If you found our site useful please link to us
<a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>
.
All Forums
>>
[Scripting]
>>
Post a VBScript
>> Show Outlook Tasks
Page:
[1]
Jump to:
Select a Forum
All Forums
----------------------
[Welcome]
- - Forum Rules
- - Test Posting Messages
- - New Member Area/Introduction
[Scripting]
- - WSH & Client Side VBScript
- - WSH & Client Side VBScript Tutorial
- - Post a VBScript
- - Windows PowerShell
- - ASP
- - ASP.NET
- - Windows Script Components
[General Forum]
- - Other Programming/Scripting Languages
- - Suggestions & Feedback
- - Off-Topic Lounge
New Messages
No New Messages
Hot Topic w/ New Messages
Hot Topic w/o New Messages
Locked w/ New Messages
Locked w/o New Messages
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
Forum Software ©
ASPPlayground.NET
Advanced Edition
2.5.5 ANSI