I tried to get multiple csv files from specific folder via connection string as below:
But there is error message indicated [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. What I have been overlooked ?
VBA Code:
Set cn = New ADODB.Connection
cn.ConnectionString = _
"Driver={Microsoft Text Driver (*.txt; *.csv)};" & _
"Dbq=" & ThisWorkbook.Path & "\Files needed\;" & _
"Extensions=asc,csv,tab,txt;"
cn.Open
But there is error message indicated [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. What I have been overlooked ?