PDA

View Full Version : Keep specefic paragraphs and lines between start and end keywords and delete the rest



modiria50989
08-14-2017, 10:09 AM
Hi, I have a folder of 41 word documents in it. I need to open each of them, then copy and paste specific paragraphs (which I know their start and end keywords) into a new page. At the end I have one page with all the information I want from all the 41 files.


I'm not sure but I think it's better if i mix all 41 files into 1 file, then I can try to figure out how I can keep my specific paragraphs and delete the rest.


Please give me a VBA code to do that. Thanks.

macropod
08-14-2017, 05:31 PM
Cross-posted at: http://www.msofficeforums.com/word-vba/36440-keep-specific-paragraphs-word-documents-folder.html
Please read VBA Express' policy on Cross-Posting in item 3 of the rules: http://www.vbaexpress.com/forum/faq.php?faq=new_faq_item#faq_new_faq_item3

modiria50989
08-14-2017, 06:00 PM
Hello, what do mean by that. I'm not sure i did something wrong. If you meant plagiarism or something like that, that's not true, because it's not my homework, I'm working and i need to facilitate my job. Please exaplain me if you meant something else. Thank you in advance.

macropod
08-14-2017, 06:02 PM
Kindly read the forum rule I directed your attention to.