Word: Deleting all headers and footers
Sub RemoveHeadersFooters()
Dim sec As Section
Dim hdr As HeaderFooter
For Each sec In ActiveDocument.Sections
For Each hdr In sec.Headers
If hdr.Exists Then
hdr.Range.Delete
End If
Next hdr
For Each hdr In sec.Footers
If hdr.Exists Then
hdr.Range.Delete
End If
Next hdr
Next sec
End Sub