Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2024, 01:31 PM
who knows who knows is offline VBA for extracting parts of text out of a large document Windows 11 VBA for extracting parts of text out of a large document Office 2019
Novice
VBA for extracting parts of text out of a large document
 
Join Date: Feb 2024
Posts: 3
who knows is on a distinguished road
Smile VBA for extracting parts of text out of a large document

Hello,

I have a large word document (2100 pages) with 80 headings and tens of subtitles.

Is there a way to extract exactly one subtitle and the corresponding text out of the entire document? In the end I want to extract in a separate document each chapter that contains: subtitle and corresponding text and not do it manually.
Reply With Quote
  #2  
Old 02-25-2024, 11:34 AM
Charles Kenyon Charles Kenyon is offline VBA for extracting parts of text out of a large document Windows 11 VBA for extracting parts of text out of a large document Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,140
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Search for "split document."
Generally, this requires a section break before each part you want split and no other section breaks.
It can also be done based on a particular style used at the start of each part.
Reply With Quote
  #3  
Old 02-25-2024, 12:19 PM
who knows who knows is offline VBA for extracting parts of text out of a large document Windows 11 VBA for extracting parts of text out of a large document Office 2019
Novice
VBA for extracting parts of text out of a large document
 
Join Date: Feb 2024
Posts: 3
who knows is on a distinguished road
Default

The question was how can I export each individual chapter (out of the 2167 page document) in an entire new .docx so that I have 80+ .doc.
Reply With Quote
  #4  
Old 02-25-2024, 03:33 PM
macropod's Avatar
macropod macropod is offline VBA for extracting parts of text out of a large document Windows 10 VBA for extracting parts of text out of a large document Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

See: https://www.msofficeforums.com/word-...save-file.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 02-25-2024, 11:19 PM
who knows who knows is offline VBA for extracting parts of text out of a large document Windows 11 VBA for extracting parts of text out of a large document Office 2019
Novice
VBA for extracting parts of text out of a large document
 
Join Date: Feb 2024
Posts: 3
who knows is on a distinguished road
Default

Thank you so very much for your responses. You really helped!
Reply With Quote
Reply

Tags
extract text, separate documents, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
extracting specific sections into a new document Rover Word VBA 2 08-03-2020 03:59 PM
Help on Extracting Outline Level Of Tracked Changes To New Document doeclapton Word VBA 1 07-24-2019 07:01 AM
VBA for extracting parts of text out of a large document How to manage (display/hide) parts of the text within a document via table of content Curby Word 2 06-30-2016 12:29 AM
How to merge text boxes in a large imported document boatfly Word 3 04-20-2016 06:15 AM
Repeating text using quick parts document property, but with different formatting and capitalization Ricky Wall Word 1 02-09-2016 05:27 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft