A family of Microsoft word processing software products for creating web, email, and print documents.
Replace
Sub SplitIntoPages()
Dim docMultiple As Document
Dim docSingle As Document
Dim rngPage As Range
Dim iCurrentPage As Integer
Dim iPageCount As Integer
Dim strNewFileName As String
Application.ScreenUpdating = False
'Work on the active document (the one currently containing the Selection):
Set docMultiple = ActiveDocument
with
Sub SplitIntoPages()
Dim docMultiple As Document
Dim docSingle As Document
Dim rngPage As Range
Dim iCurrentPage As Integer
Dim iPageCount As Integer
Dim strNewFileName As String
Dim rngHeader as Range
Application.ScreenUpdating = False
'Work on the active document (the one currently containing the Selection):
Set docMultiple = ActiveDocument
Set rngHeader = docMultiple.Sections(1).Headers(wdHeaderFooterPrimary).Range
rngHeader.End = rngHeader.End - 1 'Remove the final paragraph mark as it is not wanted.
and then replace
rngPage.Copy 'copy page to clipboard
Set docSingle = Documents.Add 'create a new document
docSingle.Range.Paste 'paste to new document
with
rngPage.Copy 'copy page to clipboard
Set docSingle = Documents.Add 'create a new document
docSingle.Range.Paste 'paste to new document
docSingle.Sections(1).Headers(wdHeaderFooterPrimary).Range = rngHeader