T
Thatch
The environment is Office 2007 with outlook 2007 running on Windows Vista with
UAC Enabled.
I have a program that I've tested on a multitude of systems and it works
great.
However, I have a client that has the particular problem that when I call
createobject("Outlook.Application"), I get a message "Cannot Create ActiveX
Component". Here's a sample of the code.
On Error Resume Next
gOutlookApplication = GetObject(, "Outlook.Application")
If gOutlookApplication Is Nothing Then
Err.Clear()
gOutlookApplication = CreateObject("Outlook.Application")
End If
If gOutlookApplication Is Nothing Then
MsgBox("Failed Startup of Outlook Application. Exiting..." &
vbCrLf & "Error: " & Err.Description)
Exit Function
end if
I have tried to run this with Outlook open and the gOutlookApplication =
GetObject(, "Outlook.Application") fails even if Outlook is open.
I am using VB.Net 2005. So, what causes this disconnect between Outlook and
accessing it? All firewall and anti-virus are disabled.
Any clues????
UAC Enabled.
I have a program that I've tested on a multitude of systems and it works
great.
However, I have a client that has the particular problem that when I call
createobject("Outlook.Application"), I get a message "Cannot Create ActiveX
Component". Here's a sample of the code.
On Error Resume Next
gOutlookApplication = GetObject(, "Outlook.Application")
If gOutlookApplication Is Nothing Then
Err.Clear()
gOutlookApplication = CreateObject("Outlook.Application")
End If
If gOutlookApplication Is Nothing Then
MsgBox("Failed Startup of Outlook Application. Exiting..." &
vbCrLf & "Error: " & Err.Description)
Exit Function
end if
I have tried to run this with Outlook open and the gOutlookApplication =
GetObject(, "Outlook.Application") fails even if Outlook is open.
I am using VB.Net 2005. So, what causes this disconnect between Outlook and
accessing it? All firewall and anti-virus are disabled.
Any clues????