![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#4
|
|||
|
|||
![]()
At which line of code does the process fail? Have you tried stepping it
though? -- Alan Moseley IT Consultancy http://www.amitc.co.uk If I have solved your problem, please click Yes below. Thanks. "Vasil Vasilev" wrote: Hi Alan, thanks for the answer. Unfortunatelly the problem still persists. ![]() "Alan Moseley" wrote: You are creating a separate process for your myApp object, which you don't need and will cause problems. Your code doesn't actaully use the myApp object anywhere so you don't need any of them, but if other areas of your code do make use of them then change :- Dim myApp As New Outlook.Application to Dim myApp As Outlook.Application next change Set myApp = CreateObject("Outlook.Application") to set myApp = Outlook Lastly change Set objNS = GetNamespace("MAPI") to Set objNS = Outlook.GetNamespace("MAPI") or Set objNS = myApp.GetNamespace("MAPI") Does this prevent the problem? -- Alan Moseley IT Consultancy http://www.amitc.co.uk If I have solved your problem, please click Yes below. Thanks. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inspecter Close Event | dch3 | Outlook and VBA | 2 | August 27th 07 11:34 AM |
MailItem Close Event | Robert Morley | Outlook and VBA | 8 | April 19th 07 09:03 PM |
Explorer' Close event not fired | j | Add-ins for Outlook | 9 | April 2nd 07 02:24 PM |
Inspector Close Event is fired when spell checking is canceled. | Arcady | Outlook and VBA | 6 | December 28th 06 02:38 PM |
Cancelling Outlook.Application.ActiveExplorer.Close event? | Nathan | Add-ins for Outlook | 1 | September 8th 06 07:14 PM |