473,394 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to get Outlook Calender events

14
I'm setting up a program that needs to know when calender events have been reached. i.e. "Out to lunch" Staring 12:00 PM, Ending 1:00 PM.

I did find some code that referenced the Default folders but each time it did a "Set objExplorer = objFolder.GetExplorer()" a new incidence of Outlook would startup. I do get the info I'm looking for, but would have zillions of Outlooks running this way.

TIA,
Ira


Expand|Select|Wrap|Line Numbers
  1.     Dim objFolder As Outlook.MAPIFolder
  2.     Dim objExplorer As Outlook.Explorer
  3.     Dim objSubFolder As Outlook.MAPIFolder
  4.     Dim objCalenderItem As Outlook.AppointmentItem
  5.  
  6.     For Each objFolder In Outlook.Session.Folders
  7.  
  8.         Set objExplorer = objFolder.GetExplorer()
  9.         For Each objSubFolder In objExplorer.CurrentFolder.Folders
  10.             If objSubFolder.DefaultItemType = olAppointmentItem Then
  11.                 For Each objCalenderItem In objSubFolder.Items
  12.                     Debug.Print objCalenderItem.Subject & ", " & objCalenderItem.Location
  13.                     Debug.Print objCalenderItem.BusyStatus
  14.                     Debug.Print objCalenderItem.Start
  15.                     Debug.Print objCalenderItem.End
  16.                 Next
  17.             End If
  18.         Next
  19.     Next
Oct 30 '12 #1
0 826

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: newbie programmer | last post by:
Hi ! I have a small php web application that uses mysql to do calendering and keep contacts. I would like to sync it with Outlook . I am new to these kinda stuffs, so I really don't know where to...
3
by: Robert Rescot | last post by:
I'm trying to develop a personal start page on my machine that would have my outlook calendar on the page. I've seen Konfabulator widgets that access the Outlook calender and a php class that I...
3
by: Sam | last post by:
My db looks after the hiring and lending of equipment, the form which books out equipment hired prints a signout sheet and automatically inserts an appointment into outlook advising the operator on...
0
by: J. Shrimp, Jr. | last post by:
Is there any way to update a shared Outlook calender through Access 2000? Using Microsoft Exchange, would like to update everyone's Outlook calender if the database is updated.
0
by: g | last post by:
Hi, I am using VS 2002 coding against the calendar folder in outlook 2002 with c#. I'm monitoring add and remove of Calendar items. I assign the add event on the calendar folder and watch the...
0
by: kalichakradhar | last post by:
hi all, hi, I am developing a application which would open the shared calender of outlook and read the meeting notices and also modifies the meeting notice from Vb.I am successful in opening the...
1
by: raghurajani | last post by:
I Want Ms Outlook Calender Control In My Windows Form.how To Get It.suggest Any Answer.its Urgent
0
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi, I wrote a .net windows app that sends out emails but was wondering is there a way to have the application write to the outlook calender, for example to set a reminder? Thanks. -- Paul G...
2
by: =?Utf-8?B?RkZD?= | last post by:
Does microsoft outlook 6 have a calender, I cannot find a calender in microsoft outlook 6, is there one? and how do i find it if there is? I there isn't how do I get one? thankyou for your time...
6
nomad
by: nomad | last post by:
Hello Everyone: I'm having troubles with some coding and Idon't know where it is. I have delevopled a calender where the client can add events to a day. The code worked perfect on my computer but...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.