A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Sum up overtime hours for my sent mails over one year



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 4th 06, 01:09 AM posted to microsoft.public.outlook.program_vba
Qiubang Li
external usenet poster
 
Posts: 1
Default Sum up overtime hours for my sent mails over one year

Hi Everyone,

I have some experience in vba programming but a newbie in outlook
programming. Can anyone help me to write a code in outlook to calculate how
many hours I have worked for my boss for the past one year. My working hours
are 9:00AM - 5:00PM. Everyday I sent an daily progress update to my boss.
Sometimes it's at 5:30PM or 6:00PM. It means I have worked half an hour or 1
hour overtime at that particular day. The whole idea is to go to the sent
folder, check all those mails sent to my boss, and sum up all those hours
with mails sent after 5:00PM. Can anyone give me some idea how to do it?
Many thanks.

--
Q Li


Ads
  #2  
Old March 6th 06, 09:01 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Sum up overtime hours for my sent mails over one year

Am Sat, 4 Mar 2006 11:09:35 +1100 schrieb Qiubang Li:

Here is a sample how to restrict a folderīs content on a specified date
range:
http://www.outlookcode.com/d/finddate.htm

You could add the subject to the filter so that the result contains only
those mails sent to your boss (with a specified subject) in a year.

Then loop through that result and check each itemīs SentOn property: If it
contains a "pm" and Hour(YourItem.SentOn) 5 then itīs a match.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


Hi Everyone,

I have some experience in vba programming but a newbie in outlook
programming. Can anyone help me to write a code in outlook to calculate

how
many hours I have worked for my boss for the past one year. My working

hours
are 9:00AM - 5:00PM. Everyday I sent an daily progress update to my boss.
Sometimes it's at 5:30PM or 6:00PM. It means I have worked half an hour or

1
hour overtime at that particular day. The whole idea is to go to the sent
folder, check all those mails sent to my boss, and sum up all those hours
with mails sent after 5:00PM. Can anyone give me some idea how to do it?
Many thanks.

--
Q Li

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calendar- hours of the day Melissa Outlook - Calandaring 2 February 16th 06 10:56 PM
display of an appoinment which is more than 24 hours long Sunny Outlook - Calandaring 1 February 1st 06 04:59 PM
change hours on calendar dendinsd Outlook - Calandaring 4 January 27th 06 05:38 PM
view a whole year in Outlook NevadaKate Outlook - Calandaring 1 January 13th 06 10:35 AM
Post of 10 hours ago Terry Haeber Outlook Express 13 January 10th 06 06:28 AM


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright Đ2004-2025 Outlook Banter.
The comments are property of their posters.