I don't see where your code makes any attempt to read from the CSV file?
I don't see where your code makes any attempt to read from the CSV file?
Everyone who confuses correlation and causation ends up dead.
Hi romperstomper,
I put the code almost as a reference of what I think could be the way, using ADO, but I'm a beginner in that area.
I was hoping to understand how that example works and then try to change to a csv, but even that example not seem to show the output as they say.
In my case I think the middle part of the code would be something like:
The part in red X=Y should be values in column A of Results.xlsx that are equal to values in A of Origing.csv. I don't know how would be the syntax here and how to retrieve values in other columns for matching rows.![]()
objConnection.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=C:\MyFiles\;" & _ "Extended Properties = ""text; HDR=No ""," objRecordset.Open "Select * FROM Origin.csv Where X = Y", _ objConnection, adOpenStatic, adLockOptimistic, adCmdText
Like a start I tried following exactly with file in example and didn't work for me, actually my computer hanged when the "Do until EOF loop" was executed.
Maybe you can help me to get the desired result.
Many thanks in advance.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks