Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-23-2023, 06:15 PM
Big_Sugah Big_Sugah is offline Highlight word document with words from .txt file Windows 10 Highlight word document with words from .txt file Office 2016
Novice
Highlight word document with words from .txt file
 
Join Date: Jan 2023
Posts: 5
Big_Sugah is on a distinguished road
Default



Quote:
Originally Posted by Guessed View Post
Looking at the code both Graham and I provided looks like PHRASES like "Google Account Services" would not find "Google", "Account" or "Services" unless they are together. Perhaps you need to provide a sample txt file that is not working for you so we can see what the problem might be.

The MatchWholeWord setting is irrelevant if the find string includes spaces as you describe.
Hi Guessed,

I've rerun the script that generates the .txt file and again I am getting the "String Parameter too long" error
List of words from the .txt file
  • Limelite Linear 300 Plaster recess luminaire Spec
  • Ampac Warranty
  • Hochiki Warranty
The error appears even with a single word

Screenshot 2023-01-24 091434.png
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight word document with words from .txt file Find and highlight multiple words in MS Word document AtaLoss Word VBA 37 09-22-2021 12:04 PM
Highlight word document with words from .txt file Macro To Identify & Highlight Words In MS Word Based Upon A List In Excel File Column abhimanyu Word VBA 5 03-20-2020 01:33 PM
How to find (highlight) two and more words in a list of 75k single words in Word 2010 Usora Word 8 05-29-2018 03:34 AM
Find and highlight multiple words in MS Word document qkjack Word VBA 7 02-21-2018 07:09 PM
Macro to highlight repeated words in word file and extract into excel file aabri Word VBA 1 06-14-2015 07:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:02 PM.


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