![]() |
#2
|
||||
|
||||
![]()
You missed the comment you reproduced in the code.
Code:
Function HeaderFooter(oDoc As Document) As Boolean On Error GoTo Err_Handler 'Do Something with oDoc here. e.g.," With oDoc With .PageSetup .HeaderDistance = CentimetersToPoints(2.6) .FooterDistance = CentimetersToPoints(2.6) End With HeaderFooter = True End With lbl_Exit: Exit Function Err_Handler: HeaderFooter = False 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 |
Adding text to the header and footer without removing all other content in the header and footer | digitalelise | Word VBA | 2 | 10-23-2019 02:58 AM |
![]() |
anakaine | Mail Merge | 3 | 11-06-2015 09:51 PM |
Dynamic Header / Footer for ALL documents | Abri | Word | 3 | 08-13-2015 04:40 AM |
Header and footer aligned in the footer area | ashiqghfr | Word | 2 | 07-23-2015 01:14 AM |
header/footer problems only in certain documents | Endzone | Word | 5 | 08-15-2012 01:04 AM |