reading and writing a csv file using FileSystemObject
Is it possible to read and write csv files using FileSystemObject in VBA? It certainly is. Basic syntax such as Set objFSO = CreateObject("scripting.filesystemobject") 'create a csv file Set objTF = objFSO.createtextfile("C:\test\myfile.csv", True, False) 'open an existing csv file with writing ability Set objTF = objFSO.OpenTextFile("C:\test\myfile.csv", 8) will create/open a CSV with FSO . The CSV can then be modified by writing to it While this is an Excel example you can use the same technique to write records from Outlook, Access, Word etc Const sFilePath = "C:\test\myfile.csv" Const