Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2023, 11:45 AM
James.Fletcher James.Fletcher is offline Automatically highlight text Windows 10 Automatically highlight text Office 2021
Novice
Automatically highlight text
 
Join Date: Feb 2023
Posts: 3
James.Fletcher is on a distinguished road
Default Automatically highlight text

Hi all,



I'm looking for a VBA code in Word that will automatically highlight text or apply a strikethrough based on the text.

For example,

when (DUP) --> strikethrough
when (LOW) --> highlight green
Reply With Quote
  #2  
Old 02-01-2023, 03:20 PM
Guessed's Avatar
Guessed Guessed is offline Automatically highlight text Windows 10 Automatically highlight text Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,932
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

See this thread - using a dropdown content control to initiate the event that runs the macro
https://www.msofficeforums.com/word-...nditional.html
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to highlight text, but not all text, in Outlook 2016, 365? cricket1001 Outlook 2 08-12-2020 11:21 AM
Automatically highlight text Code to change highlight on content control automatically gsbpxw Word VBA 2 06-11-2018 03:05 AM
like to highlight web text, enter cntl key, have text appended to same onenote pate bobk544 OneNote 0 12-10-2017 11:49 AM
Is there a way to automatically highlight the column and the row that of the current Jamal NUMAN Excel 8 02-14-2012 02:58 PM
find - reading highlight - highlight all / highlight doesn't stick when saved bobk544 Word 3 04-15-2009 03:31 PM

Other Forums: Access Forums

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