Thread
: [Solved]
Inserting a Footer if it doesn't exist ???
View Single Post
06-21-2023, 01:44 PM
gmaxey
Windows 10
Office 2019
Expert
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
As for (B), by default all new documents have a primary page footer and header even if they contain no visible text.
you might try:
If Len(ActiveDocument.Sections(1).Footers(wdHeaderFoo terPrimary).Range.Text) = 1 Then
'Write your footer text
End If
__________________
Greg Maxey
Please visit my web site at
http://www.gregmaxey.com/
gmaxey
View Public Profile
Find all posts by gmaxey