![]() |
#1
|
|||
|
|||
![]()
hello....here is an example text:
(donna ) bla bla bla bla bla (sylvie ) bla bla bla bla bal (mike ) bla bla bla bla bla (susan ) bla bla bla bla my question is: is it possible to highlight everything in the parenethesis without doing it one by one? thanks. Donna |
#2
|
|||
|
|||
![]()
You can do that with a vba procedure:
Sub ScratchMacro() Dim oRng As Range Set oRng = ActiveDocument.Content With oRng.Find .ClearFormatting .Text = "\(<*>\)" .Forward = True .Wrap = wdFindStop .MatchWildcards = True Do While .Execute With oRng .HighlightColorIndex = wdYellow .Collapse wdCollapseEnd End With Loop End With End Sub For help installing and using this macro see: http://www.gmayor.com/installing_macro.htm |
#3
|
|||
|
|||
![]()
GMaxey...wow...quick response..is what you wrote the instructions? because I have no idea what any of it means. and is it completly safe to download the program?
donna |
#4
|
|||
|
|||
![]()
Donna,
What I wrote is a vba procedure that a) Finds text in the format "(some text)" and b) applies highlight to the text found. How you install and use the vba procedure is covered in the link I provided to you. You could also do this by using the built-in find and replace utility but the vba procedure is faster and prefectly safe. |
#5
|
|||
|
|||
![]()
thanks...I will give it a try...
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
britmaniee | Excel | 1 | 06-29-2011 12:59 AM |
HELP: Automatically highlighting problem | unhappyuser | PowerPoint | 0 | 05-03-2011 02:52 PM |
Easier highlighting? | atarei | Word | 0 | 08-27-2010 05:28 PM |
Cell highlighting Issue | jasonk916 | Excel | 0 | 12-07-2009 07:05 AM |
Text Highlighting in Yellow ??? | mark4man | Publisher | 0 | 12-15-2005 06:46 PM |