View Single Post
 
Old 06-21-2023, 10:55 PM
ksor ksor is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Feb 2018
Location: Århus V, Denmark
Posts: 78
ksor is on a distinguished road
Default

I think it should be:


If Len(doc.Sections(1).Footers(wdHeaderFooterPrimary) .Range.Text) = 1 Then



"doc" instead of "ActiveDocument" - then it seems to get the right Footer = the one in the file from the hieraky.


I wonder why the LEN() of an empty Footer is 1 - what is in that Footer ?


Still I have the problem in the (A)-line - no ideas how to cure that ?
Reply With Quote