A
Alain
Hi,
I am trying to automate an excel workbook with latest info from the internet.
I am getting the "Error429 ActiveX component cannot create object" when i
try to see if Excel is already open
The code I use is :
Dim objExcel As Object 'excel app
Dim objWBooks As Object
'check if Excel is open
Set objExcel = GetObject(, "Excel.Application") <------ error raise here
If Err.Number <> 0 Then
Err.Clear
booOpen = True
Set objExcel = CreateObject("Excel.Application")
End If
What is causing this error ?
Thanks
Al
I am trying to automate an excel workbook with latest info from the internet.
I am getting the "Error429 ActiveX component cannot create object" when i
try to see if Excel is already open
The code I use is :
Dim objExcel As Object 'excel app
Dim objWBooks As Object
'check if Excel is open
Set objExcel = GetObject(, "Excel.Application") <------ error raise here
If Err.Number <> 0 Then
Err.Clear
booOpen = True
Set objExcel = CreateObject("Excel.Application")
End If
What is causing this error ?
Thanks
Al