The code -as posted - runs just fine for me, with no «runtime error '5937'». I've generated a combined document containing close to 300 pages with it.
As for the empty pages, that will be due to your source documents having such pages. The macro is coded to faithfully reproduce the source documents' content.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
|