I would like to find a way to take scores of 2-4 page .rtf files in one folder and combine them into one file in the order of the file names (the filenames start with prefixes such as 01.01, 01.02, 02.01, etc.)
I actually do not need a combined .rtf file. Rather, I need a PDF of the content of all of those .rtf files in order.
(The folder has lots of other files with other suffixes besides .rtf files.)
Is there a quick way to do this?
Thanks!
Macro to combine multiple files into one
Re: Macro to combine multiple files into one
A quick way?
Here is a macro that should work according to your specs, as far as I can make them out.
The pdfs will be saved in the same folder with the name with the prefix removed.
Here is a macro that should work according to your specs, as far as I can make them out.
The pdfs will be saved in the same folder with the name with the prefix removed.
- Attachments
-
Combine Files as PDF.nwm
- (7.12 KiB) Downloaded 256 times
philip
Re: Macro to combine multiple files into one
Thank you, Philip!
The macro required that I select a folder, so I selected the folder where all the files are. But then it gave me this error: I think the macro failed to ask me where to save the file or the file name. I guess it would be good if it would let me choose a file name.
I really appreciate your help with this!
Re: Macro to combine multiple files into one
If it gives you this error, I must assume that the files are named in a way different from what I took to be your description.
The macro here assumes that your files have names like this:
01.01myfile.rtf
01.02myfile.rtf
02.01myotherfile.rtf
… and so on.
Maybe you should give a more concrete example of how the files are named?
The macro here assumes that your files have names like this:
01.01myfile.rtf
01.02myfile.rtf
02.01myotherfile.rtf
… and so on.
Maybe you should give a more concrete example of how the files are named?
philip
Re: Macro to combine multiple files into one
I probably misled you somehow.
OK, I'll send a screenshot to you personally, but here are some things I observed:
All files start with
Code: Select all
##.##
Code: Select all
##.##a
Code: Select all
##.##b