PC Review


Reply
Thread Tools Rate Thread

Calendar access problems when Outlook is taskbar resident...

 
 
rodzilla@softwareonsailboats.com
Guest
Posts: n/a
 
      6th Mar 2006
I am having problems when accessing Outlook's default Calendar folder
after "exiting" Outlook - ie Outlook's main form closed, but Outlook's
icon still resident in the taskbar. Since Outlook is frequently in this
state, I need a solution that deals with all possible states....

The code below just loops through the Calendar appointment items...It
runs fine when Outlook is either visible-and-running, or when Outlook
is completely stopped and not memory resident (I exit Outlook and then
completely kill Outlook with Windows Task Manager).

The code below encounters NO AppointmenItems when Outlook is in the
memory-resident/icon-only in-between state.

I have tried the same routine using:
oNS.Logon( , , , True)
to try force a new Outlook session, but the problem is the same...

Any help is GREATLY appreciated

Rod Kimmel

------------------------------------------------------------------------------------
oApp = CreateObject("Outlook.Application")
oNS = oApp.GetNamespace("mapi")
oNS.Logon()
Dim oCalendar As Outlook.MAPIFolder =
oNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar)
Dim oItems As Outlook.Items = oCalendar.Items
If oItems.Count > 0 Then
Dim ictr As Integer
Dim oAppt As Outlook.AppointmentItem
Dim myObj As Object = oItems.GetFirst
For ictr = 1 To oItems.Count
If TypeOf (myObj) Is Outlook.AppointmentItem Then
oAppt = CType(myObj, Outlook.AppointmentItem)
...
End If
End IF
-------------------------------------------------------------------------------------------

 
Reply With Quote
 
 
 
 
Brian Tillman
Guest
Posts: n/a
 
      6th Mar 2006
(E-Mail Removed) <(E-Mail Removed)> wrote:

> I am having problems when accessing Outlook's default Calendar folder
> after "exiting" Outlook - ie Outlook's main form closed, but Outlook's
> icon still resident in the taskbar. Since Outlook is frequently in
> this state, I need a solution that deals with all possible states....


This is an abnormal state and indicates a problem on the person's PC. I
don't think you need to allow for it.
--
Brian Tillman

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Alerts not allowed for server resident calendar - screen2.jpg (0/3) Leo Bueno Microsoft Outlook 4 27th Aug 2008 04:54 PM
Alerts not allowed for server resident calendar Leo Bueno Microsoft Outlook 0 16th Aug 2008 01:39 PM
Outlook should show correct calendar on the taskbar =?Utf-8?B?R2JkYmx1?= Microsoft Outlook Calendar 0 5th Oct 2005 09:15 PM
Disppearing outlook calendar icon on taskbar PeterM Microsoft Outlook Discussion 0 22nd Feb 2005 02:01 PM
Only 1 User Account resident in Memory can access the Internet at one time Tom Windows XP Networking 0 5th Oct 2003 10:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:53 PM.