Results 1 to 5 of 5

Thread: Adding headers and footers to all sections of word doc and deleting blank sections

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Thank you Gmayor.

    I tried the macro right now.

    the headers and footers appear on the first section only.

    Is there a way to add them to all non empty sections before creating the split?

    If not, it's not really a big deal since the macro you posted preserves the formatting of the headers and I can add them once they are split*


    When they are split though, the blank/empty sections are still there

    I can delete them from the newly generated files. I can't find the code to delete variable pages though

    In my post here msofficeforums[dot]com/word-vba/46254-deleting-specific-pages-word-vba[dot]html#post156658 I am trying to work out how to delete the pages returned as 'blank'

    Thanks for the link.

    I will get a larger sample of multi invoice files and test it on these to see whether they are similarly formatted.

    In the meantime, the code you have posted is definitely useful
    thanks

    *I have added the headers and footers manually (i.e. section by section) before running the code that you have given me. The headers and footers disappear from all but the first section when the document is split though
    Last edited by Lefemmenikit; 01-01-2021 at 10:45 PM. Reason: tested again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •