I have multiple Text files. They are all located in a specific directory.
Directory = "C:\Users\Bob\Documents\Projects"
The file would be listed within this directory as
BobFileA.txt
BobFileB.txt
BobFileC.txt
With each of these text files, there is some similar string of text. The string of text would be something like "IDStringHere" and the string of text resides within the file amongst other text such that it would be
787,Tangent(IDStringHere1)
Is there a way that I acn run a VBA script which will go through all the file i mentioned above, open them, find the string of text, Replace the string of text with another in-putted string of textbut with the new line commands "NewText"\n"String", and then save the file in a new format such as a ".CSV" so the goal of this would be to have the files,
BobFileA.csv
BobFileB.csv
BobFileC.csv
and within these files they would have ONLY the original string of text replaced with the new.
787,Tangent(NewText
String)
Thank you in advance. I am forever in your service.