Hi there,
I use some VBA code to create a text file with some data in it which is used to be opened in another program. The program checks its content and alerts for the errors in it. When I open the text file many errors show up, however when I open the text file in notepad and do some minor changes, like hitting enter and then backspace and save the file, it works normally in the program, without errors.
I was thinking to add some additional VBA code which would open the text file after it gets created and then make some changes like the ones mentioned before and save the file.
Would that be of any help, and how could I do that? I found examples of storing the whole content of the text file in a variable and then writing it to a new text file and replacing the current one, but I would rather like to make those 2 small changes if possible.
Thanks
I use some VBA code to create a text file with some data in it which is used to be opened in another program. The program checks its content and alerts for the errors in it. When I open the text file many errors show up, however when I open the text file in notepad and do some minor changes, like hitting enter and then backspace and save the file, it works normally in the program, without errors.
I was thinking to add some additional VBA code which would open the text file after it gets created and then make some changes like the ones mentioned before and save the file.
Would that be of any help, and how could I do that? I found examples of storing the whole content of the text file in a variable and then writing it to a new text file and replacing the current one, but I would rather like to make those 2 small changes if possible.
Thanks