PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Interoperability
New Outlook.Application Causes Error
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Interoperability
New Outlook.Application Causes Error
![]() |
New Outlook.Application Causes Error |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
In VB6, all my code works if I use an existing instance of Outllook,
but if I try to instantiate a new instance, I get Error 2147023782. This happens if I use early or late binding. Both of the following code snippets fail: Dim objOutlook As Outlook.Application Set objOutlook = New Outlook.Application Dim objOutlook As Object Set objOutlook = CreateObject("Outlook.Application") This problem just started. The only thing I have changed recently on my computer is installing a new version of Norton SystemWorks. Can anyone give me any ideas as to how to fix the problem? Thanks, Mike |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Disable the Norton script stopper.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm <737jetjock@gmail.com> wrote in message news:1152063345.729488.70850@p79g2000cwp.googlegroups.com... > In VB6, all my code works if I use an existing instance of Outllook, > but if I try to instantiate a new instance, I get Error 2147023782. > This happens if I use early or late binding. Both of the following code > snippets fail: > > Dim objOutlook As Outlook.Application > Set objOutlook = New Outlook.Application > > Dim objOutlook As Object > Set objOutlook = CreateObject("Outlook.Application") > > This problem just started. The only thing I have changed recently on my > computer is installing a new version of Norton SystemWorks. > > Can anyone give me any ideas as to how to fix the problem? > > Thanks, > > Mike > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thanks for the suggestion, Ken. Actually, I tried that as well as
disabling Norton AV and Norton Internet Security. I still got the error. However, I have since found a solution to the problem. If I replace the following code: Dim objOutlook As Object Set objOutlook = CreateObject("Outlook.Application") with: Dim objOutlook As Object Set objOutlook = CreateObject("Outlook.Application", "localhost") the error doesn't occur. I'm not sure why the "localhost" argument was suddenly required to work, when it wasn't required before, but at least it works. Thanks, Mike Ken Slovak - [MVP - Outlook] wrote: > Disable the Norton script stopper. > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > Reminder Manager, Extended Reminders, Attachment Options > http://www.slovaktech.com/products.htm > > > <737jetjock@gmail.com> wrote in message > news:1152063345.729488.70850@p79g2000cwp.googlegroups.com... > > In VB6, all my code works if I use an existing instance of Outllook, > > but if I try to instantiate a new instance, I get Error 2147023782. > > This happens if I use early or late binding. Both of the following code > > snippets fail: > > > > Dim objOutlook As Outlook.Application > > Set objOutlook = New Outlook.Application > > > > Dim objOutlook As Object > > Set objOutlook = CreateObject("Outlook.Application") > > > > This problem just started. The only thing I have changed recently on my > > computer is installing a new version of Norton SystemWorks. > > > > Can anyone give me any ideas as to how to fix the problem? > > > > Thanks, > > > > Mike > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
That looks like something Norton screwed up. Localhost is what Norton
substitutes for your email servers so it can intercept outgoing/incoming emails to scan them. I've never heard of it anywhere else related to Outlook as long as you're running locally and not under some Web hosted application. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm <737jetjock@gmail.com> wrote in message news:1152467328.973406.135240@35g2000cwc.googlegroups.com... > Thanks for the suggestion, Ken. Actually, I tried that as well as > disabling Norton AV and Norton Internet Security. I still got the > error. However, I have since found a solution to the problem. If I > replace the following code: > > Dim objOutlook As Object > Set objOutlook = CreateObject("Outlook.Application") > > with: > > Dim objOutlook As Object > Set objOutlook = CreateObject("Outlook.Application", "localhost") > > the error doesn't occur. I'm not sure why the "localhost" argument was > suddenly required to work, when it wasn't required before, but at least > it works. > > Thanks, > > Mike > > > Ken Slovak - [MVP - Outlook] wrote: >> Disable the Norton script stopper. >> >> -- >> Ken Slovak >> [MVP - Outlook] >> http://www.slovaktech.com >> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 >> Reminder Manager, Extended Reminders, Attachment Options >> http://www.slovaktech.com/products.htm >> >> >> <737jetjock@gmail.com> wrote in message >> news:1152063345.729488.70850@p79g2000cwp.googlegroups.com... >> > In VB6, all my code works if I use an existing instance of Outllook, >> > but if I try to instantiate a new instance, I get Error 2147023782. >> > This happens if I use early or late binding. Both of the following code >> > snippets fail: >> > >> > Dim objOutlook As Outlook.Application >> > Set objOutlook = New Outlook.Application >> > >> > Dim objOutlook As Object >> > Set objOutlook = CreateObject("Outlook.Application") >> > >> > This problem just started. The only thing I have changed recently on my >> > computer is installing a new version of Norton SystemWorks. >> > >> > Can anyone give me any ideas as to how to fix the problem? >> > >> > Thanks, >> > >> > Mike >> > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
That could be. I passed the info along to Symantec. Hopefully, if they
did something to cause it, they will fix the problem. Mike Ken Slovak - [MVP - Outlook] wrote: > That looks like something Norton screwed up. Localhost is what Norton > substitutes for your email servers so it can intercept outgoing/incoming > emails to scan them. I've never heard of it anywhere else related to Outlook > as long as you're running locally and not under some Web hosted application. > > -- > Ken Slovak > [MVP - Outlook] > http://www.slovaktech.com > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > Reminder Manager, Extended Reminders, Attachment Options > http://www.slovaktech.com/products.htm > > > <737jetjock@gmail.com> wrote in message > news:1152467328.973406.135240@35g2000cwc.googlegroups.com... > > Thanks for the suggestion, Ken. Actually, I tried that as well as > > disabling Norton AV and Norton Internet Security. I still got the > > error. However, I have since found a solution to the problem. If I > > replace the following code: > > > > Dim objOutlook As Object > > Set objOutlook = CreateObject("Outlook.Application") > > > > with: > > > > Dim objOutlook As Object > > Set objOutlook = CreateObject("Outlook.Application", "localhost") > > > > the error doesn't occur. I'm not sure why the "localhost" argument was > > suddenly required to work, when it wasn't required before, but at least > > it works. > > > > Thanks, > > > > Mike > > > > > > Ken Slovak - [MVP - Outlook] wrote: > >> Disable the Norton script stopper. > >> > >> -- > >> Ken Slovak > >> [MVP - Outlook] > >> http://www.slovaktech.com > >> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 > >> Reminder Manager, Extended Reminders, Attachment Options > >> http://www.slovaktech.com/products.htm > >> > >> > >> <737jetjock@gmail.com> wrote in message > >> news:1152063345.729488.70850@p79g2000cwp.googlegroups.com... > >> > In VB6, all my code works if I use an existing instance of Outllook, > >> > but if I try to instantiate a new instance, I get Error 2147023782. > >> > This happens if I use early or late binding. Both of the following code > >> > snippets fail: > >> > > >> > Dim objOutlook As Outlook.Application > >> > Set objOutlook = New Outlook.Application > >> > > >> > Dim objOutlook As Object > >> > Set objOutlook = CreateObject("Outlook.Application") > >> > > >> > This problem just started. The only thing I have changed recently on my > >> > computer is installing a new version of Norton SystemWorks. > >> > > >> > Can anyone give me any ideas as to how to fix the problem? > >> > > >> > Thanks, > >> > > >> > Mike > >> > > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

