Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-04-2021, 04:56 AM
TullulahJoy TullulahJoy is offline VBA code to compile one document based on multiple search terms Windows 10 VBA code to compile one document based on multiple search terms Office 2019
Novice
 
Join Date: Apr 2021
Posts: 1
TullulahJoy is on a distinguished road
Exclamation Help - how to take this a step further....

Hi, I have a similar need which this macro almost works for (but not quite!)

1. Is there a way to retain the paragraph format & numbering when the search results are compiled in the new document? For context, the documents I am using this to search are parts of contracts, so maintaining the references for each paragraph is important. Currently when pasting the search results it currently resets the numbering to 1.1.1 etc. rather than maintain the source numbering.

2. How do I modify this to work even where a portion of the search document is a table? (structured as term in column one, definition in second column)

3. Is there a way to run the search using terms in an Excel document, and specifying a folder with several Word docs, and asking it to loop through the Word docs in that folder, performing the search? This would mean the results would need the title of the document to appear before the results from that document are compiled.


OR does all of this make it too distinct from the original ask, and should I post a new thread? Apologies, my first time here!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code to compile one document based on multiple search terms Vba macro code for grouping the data based on 2 hours time dharani suresh Excel Programming 5 04-29-2014 03:25 AM
Search and replace/insert HTML code into Master File using tags dave8555 Excel 2 02-23-2014 03:51 PM
VBA code to compile one document based on multiple search terms Character based Search and Replace font size anacond11 Word 2 08-08-2013 08:10 AM
How do I search for terms in initial upper-case? bertietheblue Word 5 05-02-2012 05:24 AM
Modify vba code to print based on name in the InputBox OTPM Project 0 05-25-2011 02:03 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:47 PM.


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