none
How do I change all the text in a document that is green to be hidden? RRS feed

  • Question

  • some of the text will be in cells in a table.

    I'm working with Office 2003.

    thank you

    Monday, January 10, 2011 10:11 PM

Answers

  • Hi Navir,

    You can use Find/Replace for this. In the Find/Replace dialogue, click on the 'More' button, leave both the Find and Replace boxes empty and as you select each of those boxes, choose Format|Font and select the 'Green' colur option for 'Find' and the 'Hidden' option for 'Replace'.


    Cheers
    Paul Edstein
    [MS MVP - Word]
    • Marked as answer by Navir Bhagwat Monday, January 10, 2011 10:55 PM
    Monday, January 10, 2011 10:40 PM

All replies

  • Hi Navir,

    You can use Find/Replace for this. In the Find/Replace dialogue, click on the 'More' button, leave both the Find and Replace boxes empty and as you select each of those boxes, choose Format|Font and select the 'Green' colur option for 'Find' and the 'Hidden' option for 'Replace'.


    Cheers
    Paul Edstein
    [MS MVP - Word]
    • Marked as answer by Navir Bhagwat Monday, January 10, 2011 10:55 PM
    Monday, January 10, 2011 10:40 PM
  • Use

    Selection.HomeKey wdStory
    Selection.Find.ClearFormatting
    Selection.Find.Font.ColorIndex = wdGreen
    With Selection.Find
       Do While .Execute(FindText:="", Forward:=True, _
           MatchWildcards:=False, Wrap:=wdFindStop, MatchCase:=False) = True
           Selection.Font.Hidden = True
           Selection.Collapse wdCollapseEnd
           Selection.MoveRight wdCharacter, 1
       Loop
    End With

    You will need to be sure that the actual colorindex of the font is actually wdGreen


    Hope this helps.

    Doug Robbins - Word MVP,
    dkr[atsymbol]mvps[dot]org
    Posted via the Community Bridge

    "Navir Bhagwat" wrote in message news:5353436a-c228-4b69-b7c5-8ef10d7e1d59@communitybridge.codeplex.com...

    some of the text will be in cells in a table.

    I'm working with Office 2003.

    thank you


    Doug Robbins - Word MVP dkr[atsymbol]mvps[dot]org
    Monday, January 10, 2011 10:54 PM