i have an error - connecting to outlook -3
due to my code
li_return = ole_outlook.ConnectToNewObject("outlook.application")
//Check for the return code
If li_return <> 0 Then
Messagebox("Error",'Connecting to Outlook'+String(li_return))
Destroy ole_outlook
Return -1
End If
plase share with me reason of error with solution
please
thanks
but it is not working
Please the me the reason first that why this error accure
Actually my problem is
Error:- connecting to outlook-3
I have a code for connecting to outlook
li_return = ole_outlook.ConnectToNewObject("outlook.application")
//Check for the return code
If li_return 0 Then
Messagebox("Error",'Connecting to Outlook'+String(li_return))
Destroy ole_outlook
Return -1
End If