sensesean
12-12-2011, 12:35 PM
Hi there,
I'm starting to get desperate after trying to learn how to code two macros for days now. My problem is that I very often need to combine many RTF/DOC files into one, do changes to this combined file, and then split the combined file back to the RTF/DOC files with the original file names. I simply lack the skills to code this.
Specifically I'd need two simple macros that would do the following, preferably in MS Word 2003:
1. JOIN ALL RTF FILES IN A FOLDER TO ONE COMBINED RTF FILE
- the macro would retain the layout of individual RTFs, possibly by storing each RTF file after a new section break in RTF
- the macro would also store the file name of each individual RTF to the joined RTF, with a <TITLE: originalfilename.rtf> tag (string) before the actual content. This info would be later used to split the combined RTF into original ones.
--- here I update the content of the combined RTF file, and then... ---
2. SPLIT THE COMBINED RTF FILE TO INDIVIDUAL FILES
- the opposite of the macro 1 above; this would save the combined RTF into splitted RTFs with the filenames stored in each <TITLE: originalfilename.rtf> tag.
BIG THANK YOU to anyone who might be able to help me out here!
I'm starting to get desperate after trying to learn how to code two macros for days now. My problem is that I very often need to combine many RTF/DOC files into one, do changes to this combined file, and then split the combined file back to the RTF/DOC files with the original file names. I simply lack the skills to code this.
Specifically I'd need two simple macros that would do the following, preferably in MS Word 2003:
1. JOIN ALL RTF FILES IN A FOLDER TO ONE COMBINED RTF FILE
- the macro would retain the layout of individual RTFs, possibly by storing each RTF file after a new section break in RTF
- the macro would also store the file name of each individual RTF to the joined RTF, with a <TITLE: originalfilename.rtf> tag (string) before the actual content. This info would be later used to split the combined RTF into original ones.
--- here I update the content of the combined RTF file, and then... ---
2. SPLIT THE COMBINED RTF FILE TO INDIVIDUAL FILES
- the opposite of the macro 1 above; this would save the combined RTF into splitted RTFs with the filenames stored in each <TITLE: originalfilename.rtf> tag.
BIG THANK YOU to anyone who might be able to help me out here!