Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2011, 03:55 PM
Donnathompson Donnathompson is offline highlighting Windows 7 32bit highlighting Office 2010 32bit
Novice
highlighting
 
Join Date: Aug 2011
Posts: 3
Donnathompson is on a distinguished road
Default highlighting

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
Reply With Quote
  #2  
Old 08-07-2011, 04:23 PM
gmaxey gmaxey is offline highlighting Windows XP highlighting Office 2010 (Version 14.0)
Word MVP 2003-2009
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,225
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

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
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 08-07-2011, 04:30 PM
Donnathompson Donnathompson is offline highlighting Windows 7 32bit highlighting Office 2010 32bit
Novice
highlighting
 
Join Date: Aug 2011
Posts: 3
Donnathompson is on a distinguished road
Default gmaxey

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
Reply With Quote
  #4  
Old 08-07-2011, 04:40 PM
gmaxey gmaxey is offline highlighting Windows XP highlighting Office 2010 (Version 14.0)
Word MVP 2003-2009
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,225
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

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.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #5  
Old 08-07-2011, 05:21 PM
Donnathompson Donnathompson is offline highlighting Windows 7 32bit highlighting Office 2010 32bit
Novice
highlighting
 
Join Date: Aug 2011
Posts: 3
Donnathompson is on a distinguished road
Default GMaxey

thanks...I will give it a try...
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
highlighting Line Highlighting 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

Other Forums: Access Forums

All times are GMT -7. The time now is 03:50 AM.


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