![how to insert header and footer in word how to insert header and footer in word](https://image.slidesharecdn.com/word2010headersfooters-120629065906-phpapp01/95/word-2010-headers-and-footers-4-728.jpg)
Footers(wdHeaderFooterIndex.wdHeaderFooterPrimary).Range. Headers(wdHeaderFooterIndex.wdHeaderFooterPrimary).Range.Text = "Header text" ' Value 9 here is the column in which Yes/No is present.
![how to insert header and footer in word how to insert header and footer in word](https://i.ytimg.com/vi/2HizSy7wv40/maxresdefault.jpg)
' Value 2 here is the column in which questions are present. Set objWord = CreateObject("Word.Application") Please suggest how I can work with this? Sub CreateFAQWord() Headers(wdHeaderFooterPrimary).Range.Text = "Header text". Generally, youll insert a Next Page section break at the bottom of the page that falls just before the page where you want the new header or footer to begin.
#How to insert header and footer in word download#
Download the before and after Word documents from the video tutorial and try the lesson yourself.
#How to insert header and footer in word how to#
When I tryto add header/footer in the word, I'm getting an error "Run Time Error 5941 : The requested member of the collection does not exist" on line. Learn how to add Headers and Footers to a document. However, the two methods explained above can solve the problem and one can place a fancy page number within a well-designed header.I'm trying to create word document from content in Excel. It may seem confusing at first trying to insert a page number and the header together, only to have them replace each other. Step 3: If instead of a simple page number, you would rather have a fancy page number, use the Current Position setting in the Page Number menu (Insert>Page Number>Current Position) and choose from the gallery.įinal Result: This is how the Page Number along with Header appears on our document A simple page number will appear in the PAGE field. Step 2: Insert a PAGE field by pressing Alt+Shift+P. Double-click anywhere within your header, and position the cursor where you want the page number to appear. Step1: Insert the header you want (Insert>Header>Austin/any other). When the position of the page number must be within the header, follow this simple method. Method #2: Insert Page Number in the Header This will put the page number where you want, and leave the Header untouched. However, if we insert the page number anywhere other than the Top of the Page, we can have both the header and the page number appear on the same page.įor instance, go to the Page Number menu (Insert>Page Number) and then click on either Bottom of Page, Page Margins, or Current Position. If you have noticed, we had inserted the page number at Top of the Page, and the Header vanished. Method #1: Insert Page Number in the Footer So how to get both? How to insert Page number without losing the header? The above anomaly happens because Word treats both the Header and the Page Number as building blocks, and each will replace the other. You will get the page number, but unfortunately, it has replaced the header you had inserted earlier. Click on Page Number and insert a page number at the Top of Page. (Case doesn’t really matter. To identify the header, we have named it My Document. To insert a blank field, press Ctrl + F9 and type IF. Here, we have chosen Austin, but any one of them will do. Click on Header and select any one of the Blanks to insert as Header. Let us start with a blank document, without header or page number.Ĭlick on the Insert tab on the Menu Bar. Choose Remove Footer to delete all footers. If you haven’t selected a page, it’ll open the first header. Select Edit Footer to open the foot on the page you’ve selected. To create your own, choose Blank and then edit it. For many, this is a frustrating problem-once the header is set up to satisfaction, inserting the page number causes the header to vanish, and reintroducing the header makes the page number go away-the two are seemingly mutually exclusive. When you’re done, select Close Header and Footer or press Esc Insert a footer Choose the footer style you want to use.