Hi Gmayor, Thanks for the replied and code provided.
The code provided able to solve only 1 file as I tried up.
Maybe due to my explanation not good enough, refer to below for more clear explanation.
What I would like to do or purpose for the macro:
Step 1. Removed all the headers and footers information for files that saved under a folder (This folder content files that more than 1k's files). -->I able to do so by used the code provided in this forum.
Step 2. Would like to put section 1 at the top of page 3 for all the files saved under this folder. ( Section 1 title vary from files to files). For this case, how can I inserting a page break for the paragraph?
Step 3. Update fields for Table of contents.
Attached with the code for removed the header and footers information for all files that saved in a folder.
File--> Example 1 and Example 2 as example of my document for your reference. Due to vary of files to files for the Section 1 title, thus i only able to share this 2 files.
Appreciate your help and thank you so much!
|