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

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -