excel - Can VBA delete a row from a .txt file -
i have text file contains:
date, price 3/12/2015, 755 3/13/2015, 1087
i have code inserting rows text file , have insert correction date. in example, let's real price want 3/12/2015 650 instead of 755. there way delete 755 row , insert row 3/12/2015, 650 new file like:
date, price 3/12/2015, 650 3/13/2015, 1087
here code using write text file:
filepath = "c:\desktop\path.txt" set ofile = fso.opentextfile(filepath, 8, true) ofile.writeline range("a13").text & "," & range("b13").value
thank you.
Comments
Post a Comment