You could do this with a batch processing macro, provided all the documents
are in the same folder.
The following macro
http://www.gmayor.com/installing_macro.htm will replace
the existing header with whatever header you first save as an autotext entry
called 'logo'.
If you wish to *add* the company header to an existing header, the code will
require modification - and if some of the documents have multiple sections
you will have to add code to process those sections, but the basic code will
work for simple documents. Try it on a few copies in a folder created for
the purpose.
If you want more help with this I will not be around again this weekend. Ask
your further questions in the VBA newsgroup.
Sub AddAHeader()
Dim myFile As String
Dim PathToUse As String
Dim myDoc As Document
' Get the folder containing the files
' Save the header to insert as an autotext entry
' called 'logo'
With Dialogs(wdDialogCopyFile)
If .Display <> 0 Then
PathToUse = .Directory
Else
MsgBox "Cancelled by User"
Exit Sub
End If
End With
'Close any documents that may be open
If Documents.Count > 0 Then
Documents.Close Savechanges:=wdPromptToSaveChanges
End If
If Left(PathToUse, 1) = Chr(34) Then
PathToUse = Mid(PathToUse, 2, Len(PathToUse) - 2)
End If
myFile = Dir$(PathToUse & "*.doc")
While myFile <> ""
'Open each file and make the replacement
Set myDoc = Documents.Open(PathToUse & myFile)
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
Selection.WholeStory
Selection.Delete Unit:=wdCharacter, Count:=1
Selection.Style = ActiveDocument.Styles("Normal")
NormalTemplate.AutoTextEntries("Logo").Insert Where:=Selection.Range, _
RichText:=True
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
myDoc.Close Savechanges:=wdSaveChanges
myFile = Dir$()
Wend
End Sub
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>