jardenp
Active Member
- Joined
- May 12, 2009
- Messages
- 373
- Office Version
- 2019
- 2016
- 2013
- 2011
- 2010
- Platform
- Windows
Is there a VBA code that will take the current sheet's data and append it to an existing text file with no blank lines between the original data and appended data? I've found various solutions to combine existing text files, but none that starts with the data on the current sheet.
The data in the destination.txt is an undefined number (always greater than 0 though) of 84-character strings, each one on a different row.
In the Excel sheet, each 84-character string is in a cell in column A, starting with A1 and extending down, always in a contiguous block. It may be only A1 or, say, A1:A20. It will never be something like A1:A3, A7:A10.
If need be, the current sheet can be saved as origin.txt in the same directory as destination.txt. (That part I know how to do!)
I do not need to rename destination.txt
Thanks!
The data in the destination.txt is an undefined number (always greater than 0 though) of 84-character strings, each one on a different row.
In the Excel sheet, each 84-character string is in a cell in column A, starting with A1 and extending down, always in a contiguous block. It may be only A1 or, say, A1:A20. It will never be something like A1:A3, A7:A10.
If need be, the current sheet can be saved as origin.txt in the same directory as destination.txt. (That part I know how to do!)
I do not need to rename destination.txt
Thanks!