Solved

appointments from tasks - advanced filter/view

Posted on 2012-12-28
9
461 Views
Last Modified: 2013-03-10
Dear Experts,
you can create appointment in calendar from task (by draggisk task to calendar).
If you create such appointent, does the appointment object contains some reference to the source task?
can you for example prepare and SQL filter (view) showing only those tasks which have a corresponding appointment in calendar?
thanks
Jarek
0
Comment
Question by:ja-rek
9 Comments
 
LVL 12

Assisted Solution

by:Julian123
Julian123 earned 50 total points
ID: 38728738
Hi ja-rek,

From the Outlook perspective, there's no direct pointer from the appointment object to the task object. The appointment is a new and separate item on the calendar. There isn't a way to create a regular or SQL view that shows only tasks with a corresponding appointment.

That said, the task and appointment will have the same subject so it would be possible to write a customer VBA or C# add-in that creates a view that links the two together. It may not work 100% of the time if multiple tasks/appointments have the same subject but if that doesn't occur often for you it should work most of the the time. If that's of interest to you, please open a new question in the Outlook Groupware and MS Development sections and we can get  you some help on that.

Thanks!
0
 
LVL 10

Expert Comment

by:Nancy McCullough
ID: 38735625
Yep, you can. Using MS Office for project management is an enhancement found in 2010. Have a peek: http://gigaom.com/2009/09/23/5-outlook-2010-productivity-enhancements/
0
 
LVL 1

Author Comment

by:ja-rek
ID: 38892860
Unfortunately I cannot find what I need in the arcticle you provided, cityqat.
Can you please be more specific?

or maybe other Expert could help?
I need a way to display tasks (maybe using SQL filter) from which there are no appointments created in Calendar.

Otherwise I will follow Julian123 advice.

thanks!
Jarek
0
 
LVL 76

Expert Comment

by:David Lee
ID: 38961312
Hi, ja-rek.

What do you have in mind when you say "display tasks"?  As Julian123 said, we can use VBA to search the calendar for tasks with subjects matching those of tasks.  There's no built-in way of displaying that in Outlook though.  In other words, we can't filter your task list to show just those tasks with calendar appointments.  We could display that info in a dialog-box, send it to Excel, or something like that.  

Julian123 also pointed out an obvious flaw in this kind of search.  All we can match on is the subject.  That's going to provide inaccurate results since it's entirely possible that there will be appointments with subjects that match tasks even though that appointment wasn't created by dragging and dropping the task to the calendar.

Perhaps if you could share what you need to accomplish we could recommend a solution.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 1

Author Comment

by:ja-rek
ID: 38961318
thanks Bluedevil for reply.
I would like to know which of my tasks have not been scheduled in calendar as appointments
0
 
LVL 76

Accepted Solution

by:
David Lee earned 450 total points
ID: 38961453
The following macro reads through your tasks and searches for a matching appointment on your calendar.  If it doesn't find one, then it adds that task to the list.  Once the macro finishes processing the tasks it displays a page in Internet Explorer listing the tasks that it didn't find a match for.  Click a link to open that task.

Follow these instructions to add the code to Outlook.

1.  Start Outlook
2.  Press ALT+F11 to open the Visual Basic Editor
3.  If not already expanded, expand Microsoft Office Outlook Objects
4.  If not already expanded, expand Modules
5.  Select an existing module (e.g. Module1) by double-clicking on it or create a new module by right-clicking Modules and selecting Insert > Module.
6.  Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window
7.  Click the diskette icon on the toolbar to save the changes
8.  Close the VB Editor

Sub FindMatchingTasks()
    Dim olkTsks As Outlook.Items, _
        olkTsk As Outlook.TaskItem, _
        olkApts As Outlook.Items, _
        olkHit As Outlook.AppointmentItem, _
        strBuff As String, _
        objIE As Object
    Set olkTsks = Session.GetDefaultFolder(olFolderTasks).Items
    Set olkApts = Session.GetDefaultFolder(olFolderCalendar).Items
    olkApts.Sort "[Start]"
    olkApts.IncludeRecurrences = True
    For Each olkTsk In olkTsks
    Debug.Print olkTsk.Subject
        Set olkHit = olkApts.Find("[Subject] = '" & olkTsk.Subject & "'")
        If TypeName(olkHit) = "Nothing" Then
            strBuff = strBuff & "<tr><td><a href=""Outlook:" & olkTsk.EntryID & """>" & olkTsk.Subject & "</a></td></tr>"
        End If
    Next
    Set objIE = CreateObject("InternetExplorer.Application")
    With objIE
        .Navigate2 "about:blank"
        Do Until .readyState = 4
            DoEvents
        Loop
        .document.Body.innerHTML = "<p>The following tasks do not appear to have a matching entry on your calendar.</p><table>" & strBuff & "</table>"
        .Visible = True
    End With
    Set olkTsks = Nothing
    Set olkTsk = Nothing
    Set olkApts = Nothing
    Set olkHits = Nothing
    Set objIE = Nothing
End Sub

Open in new window

0
 
LVL 1

Author Closing Comment

by:ja-rek
ID: 38971940
many thanks!
0
 
LVL 76

Expert Comment

by:David Lee
ID: 38972092
You're welcome!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Use email signature images to promote corporate certifications and industry awards.
Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now