Thanks for the quick response.
Can I:
A. Go back in and do something like this to fix it
Set myOlApp = Nothing
Exit Sub
B. Go back in and do this for ALL the Set statements?
"Dmitry Streblechenko" wrote:
This is an indication that you code was terminated without releasing one of
the Outlook objects (which referenced a MAPI object).
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Access101" wrote in message
...
Many hours after running code, Outlook has an error message upon opening
(each time it opens now--even though the code ran once hours ago) that the
Personal Folder was not closed properly, and goes through a 6 minute
assessment and fix, and then finally opens.
Do ALL of these "sets" need to be Set to = Nothing at the end of the
routine, or just the myOlApp?
Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNamespace("MAPI")
Set myPersonal = myNameSpace.Folders("Personal Folders2")