K
Kristy
Hi
I have a VB6.0 Com Addin that allows me to Print Outlook messages via
a Word Template. This causes Outlook to crash with Outlook 2003 (2000,
XP are OK) if Word isn't already open and I try to programmatically
create the object. The addin doesn't get disabled and I don't have
Nortons or any other script blockers running.
What's weird is that the crash doesn't happen until the subroutine has
finished running, after the message has printed - at that time it
kicks me out of outlook, very frustrating!
The code that is causing the crash is...
Dim objWord As Word.Application
Set objWord = GetObject(, "Word.Application")
On Error GoTo 0
If objWord Is Nothing Then
Err.Clear
Set objWord = CreateObject("Word.Application")
End If
Any ideas????
Kristy
I have a VB6.0 Com Addin that allows me to Print Outlook messages via
a Word Template. This causes Outlook to crash with Outlook 2003 (2000,
XP are OK) if Word isn't already open and I try to programmatically
create the object. The addin doesn't get disabled and I don't have
Nortons or any other script blockers running.
What's weird is that the crash doesn't happen until the subroutine has
finished running, after the message has printed - at that time it
kicks me out of outlook, very frustrating!
The code that is causing the crash is...
Dim objWord As Word.Application
Set objWord = GetObject(, "Word.Application")
On Error GoTo 0
If objWord Is Nothing Then
Err.Clear
Set objWord = CreateObject("Word.Application")
End If
Any ideas????
Kristy