Arjan Kessel
04-01-2009, 04:08 AM
Hi! Unfortunately I can't find a full working example here on the forum, so this is my question...
I need a macro script that can split a Word document in pieces and auto save every new generated file on the hard disk.
I have a large document, and want to search for a string. Let's say this string is ""///". At this point, I want the macro to create a new Word document with the content between the first ""///" and the next ""///" and save the new document with a random filename or (better) a filename based on the first words / line of the new document. Is this possible?
I've found here a "Splitdoc" macro and this one is working well, but the new documents loses all the formatting of the original document. Of course I want to maintain the formatting.
And I can't find an example to auto save all the files.
Please help!
Thanks in advance,
Arjan
I need a macro script that can split a Word document in pieces and auto save every new generated file on the hard disk.
I have a large document, and want to search for a string. Let's say this string is ""///". At this point, I want the macro to create a new Word document with the content between the first ""///" and the next ""///" and save the new document with a random filename or (better) a filename based on the first words / line of the new document. Is this possible?
I've found here a "Splitdoc" macro and this one is working well, but the new documents loses all the formatting of the original document. Of course I want to maintain the formatting.
And I can't find an example to auto save all the files.
Please help!
Thanks in advance,
Arjan