I am a beginner to excel 2007. I am trying to make a connection to the oracle database 10G and extract data from it. I am getting "Runtime error :'-2147467259(80004005)': Automation error unspecified error" . This code is working for my senior.Please Help!!
Sub build_database_connection()
Dim cn As ADODB.Connection
Set cn= New ADODB.Connection
servername = example.com
UserName = example
pass = example
cn_cdcp.Open "Provider=MSDAORA.1;Data Source=" & servername & ";User ID=" & UserName & "Password=" & pass & ";"
End Sub