![]() |
#2
|
||||
|
||||
![]()
You could use http://www.gmayor.com/document_batch_processes.htm to handle the documents and run the following as a custom process:
Code:
Function AddFooter(oDoc As Document) As Boolean On Error GoTo err_Handler Dim oSection As Section Dim oFooter As HeaderFooter For Each oSection In oDoc.Sections For Each oFooter In oSection.Footers If oFooter.Exists Then oFooter.Range.Text = "Confidential - Not for distribution" End If Next oFooter Next oSection AddFooter = True lbl_Exit: Exit Function err_Handler: AddFooter = False Resume lbl_Exit End Function
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Peter Carter | Word VBA | 27 | 12-15-2022 04:10 PM |
Macro for multiple RTF files | papapaleo | Word VBA | 1 | 07-28-2017 04:56 AM |
![]() |
rsrasc | Word VBA | 2 | 10-31-2014 07:58 AM |
Word 2010 running multiple instances | JBE | Word | 0 | 09-28-2012 06:00 PM |
![]() |
bolk | Word | 3 | 05-03-2011 05:46 AM |