Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Tith Tith is offline
external usenet poster
 
Posts: 5
Default vba Word 2003 modify headers

I have a macro to run through the document and change all my red text to
blue, but it doesn't affect my headers. How do I get it to incorporate my
headers as well?

Public Sub Red2Blue()
With ActiveDocument.Content.Find
.ClearFormatting
.Font.Color = wdColorRed
With .Replacement
.ClearFormatting
.Font.Color = wdColorBlue
End With

.Execute FindText:="", ReplaceWith:="", Format:=True,
Replace:=wdReplaceAll
End With
End Sub
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
vba Word 2003 modify headers Tith Microsoft Word Help 4 May 11th 10 03:51 PM
How do I modify a paragraph style in VBA? HHM Microsoft Word Help 1 January 10th 08 09:39 PM
Modify Object in Word with VBA jlawson Microsoft Word Help 1 April 9th 07 11:47 AM
Word 2003 can't modify all table formats Rich Tables 1 September 22nd 06 03:13 PM
Excel 2003, Word 2003, Equation Editor, VBA Mike Microsoft Word Help 1 December 30th 05 05:15 PM


All times are GMT +1. The time now is 11:39 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"