View Single Post
 
Old 01-17-2022, 04:55 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote