Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2021, 01:53 AM
benbob benbob is offline Search for a Text, then copy the header to a list Windows 10 Search for a Text, then copy the header to a list Office 2016
Novice
Search for a Text, then copy the header to a list
 
Join Date: Jul 2018
Posts: 5
benbob is on a distinguished road
Smile Search for a Text, then copy the header to a list

Hi,

This is beyond my weak macro knowledge.

I am trying to build a macro that searches a large word document for 16.1



When it is found, it takes the first heading 2 styled text above this number (usually a few paragraphs above but it's not consistent)

It adds this heading text to a list and then continues the search until the entire document has been searched. I will end up with a list of headings with 16.1 within that heading section.

The document can be hundreds of pages, so want to find a way not to do it manually by running a search for 16.1 and manually copying the headings from the highlighted sections.

Do you think is possible in a macro, can anyone get me started?

Thank you in advance
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Folders migration/copy luwi Outlook 0 09-26-2021 11:16 AM
How To Copy Header From One Doc To Another? gil_happy Word 7 05-14-2021 08:17 PM
Browse, search and copy files from one location to another based on the list given in excel sheet us nmkhan3010 Excel Programming 2 09-07-2020 10:27 AM
Search for a Text, then copy the header to a list Help to include header and footer in string search code which i already have. branko Word VBA 1 03-28-2017 11:50 PM
Search Replace Copy dblack7211 Word 0 05-05-2010 01:19 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:41 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