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 ?
|