Sorry I looked in depth and I realized that I replaced everything except one thing,
The correct code you provided contains [F1] in select line and I had missing
didnt have [F1] in my code, I had this:
objRecordset.Open "Select [F2], [F3], [F4] FROM [Big Data.csv]", _
objConnection, adOpenStatic, adLockOptimistic, adCmdText
when the correct is:
objRecordset.Open "Select [F1], [F2], [F3], [F4] FROM [Big Data.csv]", _
objConnection, adOpenStatic, adLockOptimistic, adCmdText
Well, knowing that issue I could test the macro but I found that the execution is very slow. When the line "objRecordset.Filter=..." is executed
it took like 10 seconds to pass to the next line of code. It seems that needs much time when filters a value within the Recordset.
After 5 minutes only 10 found lines were printed. I had to stop Excel because almost hangs
.
Bookmarks