I want to connect to DB2 from excel macro...This is my code, but it not working, Its giving error as \'Run-time Error\'...Can anyone help me...
Option Explic
Start with changing
DBCON = CreateObject("OLEDB.Connection")
to
Set DBCON = CreateObject("ADODB.Connection")
If you still get an error, double-check your connection string.