Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 09-27-2022, 04:32 PM
macropod's Avatar
macropod macropod is offline Searching a Word document with multiple words from a list (over 1,000 terms) and BOLD all occurrence Windows 10 Searching a Word document with multiple words from a list (over 1,000 terms) and BOLD all occurrence Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
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

Quote:
Originally Posted by Nicknamednick View Post
I assume, enter my own local path to the .xlsx between the " ".
As coded, the macro looks for a workbook named 'WordList.xlsx' in your Documents folder. You could have it look in whatever folder your document is by changing:
StrWkBkNm = "C:\Users" & Environ("Username") & "\Documents\WordList.xlsx"
to:
StrWkBkNm = ActiveDocument.Path & "\WordList.xlsx"
Otherwise, you could supply the fill path & filename.
Quote:
Originally Posted by Nicknamednick View Post
if the workbook I'm using has a sheet called "Table1 (2)" with the word list, I should swap out for "Sheet1"
Yes.
Quote:
Originally Posted by Nicknamednick View Post
My column is entitled "Column1" so I assume I should change out "column A".
No, that's just a text comment. Regardless of what you change that to, the code will still look in column A. If you want to search a different column, change the column reference in the .Range("A" & i) references.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
 

Tags
excel 2019, ms-word, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching a Word document with multiple words from a list (over 1,000 terms) and BOLD all occurrence Wildcards: searching for multiple words / expressions close to each other ballpoint Word VBA 7 11-09-2017 03:30 PM
Searching a Word document with multiple words from a list (over 1,000 terms) and BOLD all occurrence Best Practice for Indexing Multiple Word Terms and Sub-Terms jhy001 Word 4 11-06-2017 02:08 PM
Searching a Word document with multiple words from a list (over 1,000 terms) and BOLD all occurrence All words in document appear bold but are not! Ezra Word 4 07-31-2017 06:53 AM
Searching a Word document with multiple words from a list (over 1,000 terms) and BOLD all occurrence Making Multiple Words Bold mtk989 Word 2 06-25-2011 11:27 AM
Searching a Word document with multiple words from a list (over 1,000 terms) and BOLD all occurrence How to make a list of all the bold words in a document? galaxy_110 Word 1 12-31-2010 08:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:46 AM.


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