(wdBorderBottom).LineStyle = wdLineStyleNoneĪ = wdSeekMainDocumentģ. VBA code: Remove all various headers and footers in current document: Sub RemoveHeadAndFoot()Ī = wdSeekCurrentPageHeader Click Insert > Module, and paste the following macro in the Module Window. Open the Word file that you want to remove all the headers and footers, and then hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.Ģ.
#HOW TO DELETE A HEADER FROM A GOOGLE DOC CODE#
Here, I will introduce a VBA code for dealing with this task.ġ. So, there are multiple various headers or footers in active document, to remove all these various headers or footers, you need to apply the above method for deleting the headers or footers over and over again. Supposing, your document has been divided into multiple sections, and every section has each header or footer. Remove all various headers and footers in active document with VBA code Tips: To remove all footers from this document, please repeat the above steps. And then, click Close Header and Footer to exit the editing mode, and the header content in page one has been removed at once. Then, check Different First Page under the Header & Footer tab, see screenshot:ģ. Open the Word file and go to the first page that you want to remove the header and footer, and then double-click the header area into editing mode.Ģ. If you just want to remove the header and footer from the first page of current document and keep others, please do as this:ġ. Remove the header and footer from the first page in active document Remove all header lines in active document with an amazing feature.
Remove all various headers, footers and watermarks in active document with Inspect Document feature.Remove all various headers and footers in active document with VBA code.Remove all headers and footers in active document.Remove the header and footer from the first page in active document.
#HOW TO DELETE A HEADER FROM A GOOGLE DOC HOW TO#
But, if there are multiple various headers and footers in one document, how to remove all of them at once? Normally, you can quickly remove all the headers and footers from a Word document just by double-clicking the header or footer field, and then remove them at once. How To Remove All Headers And Footers In Word?