Is there a way with VBA to combine 2 files? Currently I am doing it with a batch file which works great for .txt files, but if I format a file as a .rtf, it does not work.
Here is what I have in my batch file:
copy f:\pdoxdata\blotter.txt+f:\pdoxdata\temp.txt f:\pdoxdata\blotter.txt
del f:\pdoxdata\temp.txt
What I have to do is print about 20 or so reports to a file and combine them into one file. What I am doing is creating a blank text file (blotter.txt) with code and then each report is exported as temp.txt. Once the report is created, I call the batch file and combine the 2 file into blotter.txt.
The problem is that the .txt file is not "pretty" enough for my boss. An .rtf file is what I want to create, but the batch file is not able to combine .rtf files, only .txt.
Thanks for your help.
Here is what I have in my batch file:
copy f:\pdoxdata\blotter.txt+f:\pdoxdata\temp.txt f:\pdoxdata\blotter.txt
del f:\pdoxdata\temp.txt
What I have to do is print about 20 or so reports to a file and combine them into one file. What I am doing is creating a blank text file (blotter.txt) with code and then each report is exported as temp.txt. Once the report is created, I call the batch file and combine the 2 file into blotter.txt.
The problem is that the .txt file is not "pretty" enough for my boss. An .rtf file is what I want to create, but the batch file is not able to combine .rtf files, only .txt.
Thanks for your help.