View Single Post
  #2  
Old May 21st 09, 02:44 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Retrieving work week (start/end times) from outlook with VBA

Those settings are stored in the registry, at
HKCU\Software\Microsoft\Office\11.0\Outlook\Option s\Calendar (11.0 is for
Outlook 2003, for Outlook 2007 it's 12.0, etc.).

The values are stored as DWORD's, you will have to reverse engineer what the
meanings are, I'm not sure how they are interpreted by Outlook. Make changes
in the Outlook settings and see which registry values change and in what way
depending on the settings you change.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"ker_01" wrote in message
...
I've searched (object browser, help file, google), but no joy.

I'm pulling certain appointments (based on the contents of the subject
line)
and I need to differentiate between any partial or full appointments that
are
within the user's workday, and partial or full appointments that are
outside
that user's workday (for the partials, I'll have to calculate the number
of
hours that are actually within the workday). Different users have
different
start and end times set on their calendar.

I haven't been able to find the part of the object model to show the
individual user's workday- can anyone point me in the right directions?
Once
I have that I can calculate backwards to get the duration within the
workday,
unless there is an easier way to do this somehow.

Thanks!
Keith



Ads