Solved

Outlook 2007 Calendar - Add up time spent on separate events

Posted on 2014-03-29
2
1,013 Views
Last Modified: 2014-04-24
I've just begun to use the Calendar in Outlook 2007 and have been pleasantly surprised by the amount of detail I can add to a Scheduled event.

I've created separate Calendars for each of my Service Techs and am now using them to keep track of jobs scheduled during the work week.  Start Time and End Time are of great benefit as I use those entries for calculating payroll.  However, since a tech can travel to and complete several different jobs in a single day, I spend a lot of time at the end of the week opening events and manually calculating the time spent on each single scheduled event.

Is there a way for Outlook to calculate/export "Start Time" and "End Time" entries so that a running total of hours spent working on all scheduled events for the day/week can be tracked?  This would be a tremendous timesaver.
0
Comment
Question by:baleman2
2 Comments
 
LVL 19

Expert Comment

by:Patricksr1972
ID: 39964785
Hi

Worktimer could be what you are looking for, this example https://worktimer.nl/ is a dutch way but i am sure there are many more when you google for "worktimer for outlook"
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 39966755
Hi, baleman2.

You can accomplish this with a really simple macro.  Something like

Sub CalculateTotalEventTime()
    Dim olkApt As Outlook.AppointmentItem, dblTot As Double
    For Each olkApt In Application.ActiveExplorer.Selection
        dblTot = dblTot + olkApt.Duration
    Next
    dblTot = dblTot / 60
    MsgBox "The selected appontments total to " & dblTot & " hours.", vbInformation + vbOKOnly, "Calculate Total Event Time"
End Sub

Open in new window


This macro reads through all the selected appointment and sums the Duration field.  It then displays a dialog-box showing you the total time in hours.  All you need to do is select the appointments you want to sum and run the macro.

Here's how you'd add the macro 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
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Set OWA language and time zone in Exchange for individuals, all users or per database.
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 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…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

743 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

12 Experts available now in Live!

Get 1:1 Help Now