I posted this message three days ago and have received ro replies so I'm trying again:
I have an application that accesses and displays Outlook calendars for the user to manipulate. The basic code looks like:
olFolderDisplayFolderOnly = 1
oExplorer = NULL
oExplorer = olFolder.GetExplorer(olFolderDisplayFolderOnly)
oExplorer.Display()
oExplorer = NULL
Where olFolder is the Calendar Folder object obtained earlier. This code works fine the first time the user executes it. The calendar appears and the user can do what they need to with it. However, if they close the calendar then select to view the calendar again ( executing the above code a second time ), the code fails at the Display() line with the error message from Outlook "The Explorer has been closed and cannot be used for further operations. Review your code and restart Outlook...". Has anyone encountered this and found out what the cause ( and remedy ) is?
Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.