View Single Post
  #22   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Can't remove highlight

Highlighting applied via the Highlighting tool on the Home tab can be
removed as follows: Select the whole document by pressing Ctrl+A and
then click the arrow on the Text Highlight Color button and choose the
"No Color."

To remove font and paragraph shading you can run the following macro:

Sub ClearAllShadingFromDoc()
'Macro created by Stefan Blom, MVP, January 2015

With ActiveDocument.Content.ParagraphFormat.Shading
.Texture = wdTextureNone
.ForegroundPatternColor = wdColorAutomatic
.BackgroundPatternColor = wdColorAutomatic
End With

With ActiveDocument.Content.Font.Shading
.Texture = wdTextureNone
.ForegroundPatternColor = wdColorAutomatic
.BackgroundPatternColor = wdColorAutomatic
End With
End Sub


For assistance, see http://www.gmayor.com/installing_macro.htm.

Stefan Blom
Microsoft Word MVP




Den 2016-05-10 kl. 19:12, skrev :
On Tuesday, July 3, 2007 at 6:56:01 AM UTC-5, suroora wrote:
I can't remove the highlighting from certain sections in my word document -
I've tried selecting and highlighting all the text and then removing the
highlighting, but these sections stay yellow. Any suggestions?