What kind of functions can I use to search for a line in a vba file, and then store this file to an array. Example:
job,boe,sig,dive,mag,num,
blah,blah,,,,,
wuttt,ais,,sidji,,,
look for the line that has "blah" in the first column and store it to an array.
Currently I am using the bash nawk command to find the line in a csv file, and then put this into a text file. Then I use:
Open "C:\file2.csv" For Binary As #1
MyData = Space$(LOF(1))
Get #1, , MyData
Close #1
strData() = Split(MyData, ",")
To store the line in an array. To make it efficient, I want to cancel out the bash portion and read the line in directly from the csv file using VBA.