Can someone help im trying to merge text files into one file...
using VBA, basically all is want is a all the text files in the location of the excel file to be merged, into one file and then all other txt files to be deleted once merged..
I have tried this but it did not work...
using VBA, basically all is want is a all the text files in the location of the excel file to be merged, into one file and then all other txt files to be deleted once merged..
I have tried this but it did not work...
Code:
strPath = Application.ActiveWorkbook.Path & ""
[/COLOR][COLOR=#333333]Shell "cmd.exe copy /c """ & strPath & "*.txt"" """ & strPath & "Consolidated.txt""", 0[/COLOR]
Last edited by a moderator: