Word Page Numbers Starting From a Specific Page
Hello everyone! Welcome to hbninfotech.com! Are you looking to know how to insert Word Page Numbers Starting From a Specific Page? Do you want to skip the first page during page numbering? All your questions will be answered in this tutorial.
Inserting page number from specific page is a 7 Step process which could be tedious for many of you. That’s why I created a simple macro that could do the job in a single click. Yes! you heard it right. You can start page numbering on a specific page with just one click! That’s awesome right.
I shall explain the steps for both manual method and automation (VBA macro) method.
How to insert page number from current page in word (manual method)
1st Step: Place the cursor in the immediate previous page from where you want to start the page numbering.
2nd Step: Go to Layout Menu ➔ Then click on Breaks ➔ Then click on Next Page. What this would do is it would create a new section from the next page. This helps setup different settings and formatting on different sections in a word document.
3rd Step: Go to the Insert Menu ➔ Then click on Page Number ➔ Then click choose one of the following Top of the page / Bottom of the page ➔ Then click on the page number style that you want. For Example: “Plain Number 2”
4th Step: Now keeping your cursor still in the Header/Footer section, Go to Design Tab ➔ Then click on Link to Previous (This turns off the link between the previous section and the current section.
5th Step: Now in the same Design Tab click on Page Number ➔ Then click on Format Page Numbers ➔ The under the Page numbering click and select Start at: ➔ Then type 1 in the box and click on the OK button.
Now at this stage the page number would start from no 1 from the page you desired but if you have a look at the previous pages you could notice that they too have a different set of page numbers. So you will need to go to the previous section and disable page numbering for that section. Lets see the steps:
6th Step: Go to the previous page (previous section) and click inside the Header/Footer are of that page ➔ Then either manually delete the page number field or go to Page Number ➔ Then click on Remove Page Numbers. This action would remove page numbering in the previous section.
7th Step: Now in the same Design Tab click on Close Header and Footer.
How to add page number from specific page in word (VBA macro method)
Well! This macro code does the job in a single click but there is a one time setup process. Please note that this code inserts the page numbers that are centre aligned at the bottom of the page. The setup process is as follows:
Step 1: If you are using Word 2007, you can skip this step and continue from the 2nd step. For those of you who are using Word 2010 and later versions, you will need to save the file in compatibility mode so that old macro code works in the latest version.
Step 2: Go to the Developer Tab (If you don’t see it then click on this link to learn how to enable the developer tab) Then click on Visual Basic. Alternatively you may also press the Alt + F11 keys on your keyboard to launch the Visual Basic Editor (VBE).
Step 3: Click on Normal in the project panel ➔ Then click on the Module Folder ➔ Then go to the Insert Menu ➔ Then click on Module. If you want the code to work on multiple files then I recommend you to create a Global Macro by adding the code to Normal.Dotm (Normal Template)
Step 4: Copy the below VBA Code into the Module
Sub PageNumInsert() 'code by hbninfotech.com Application.Browser.Previous Application.Browser.Next Selection.InsertBreak Type:=wdSectionBreakNextPage WordBasic.ViewFooterOnly Selection.HeaderFooter.LinkToPrevious = Not Selection.HeaderFooter. _ LinkToPrevious With ActiveDocument.Sections(2) .Footers(wdHeaderFooterPrimary).PageNumbers.Add _ PageNumberAlignment:=wdAlignPageNumberCenter, _ FirstPage:=True End With With Selection.HeaderFooter.PageNumbers .NumberStyle = wdPageNumberStyleArabic .HeadingLevelForChapter = 0 .IncludeChapterNumber = False .ChapterPageSeparator = wdSeparatorHyphen .RestartNumberingAtSection = True .StartingNumber = 1 End With ActiveWindow.ActivePane.View.PreviousHeaderFooter WordBasic.RemovePageNumbers ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument End Sub
Step 5: Run the code (you may do it by clicking on the Run Sub/Userform button or by going to the Run Menu and clicking on the Run Sub/Userform. Alternatively you may also press the F5 key on your keyboard or you may also run it from the macros dialog box (keyboard shortcut: Alt + F8).
Linking the Macro code to a button for one click action
You can link or attach a Macro code to a button and place it on a page. But I recommend you to create your own tab, place a button on it and link the VBA code to it so that when you click the button it starts the page numbering at the current or specific page you want. Now if you want to run this code on all of your word files then you should consider adding this code to the Normal Template as Explained earlier.
For the step by step video instructions, watch the video tutorial below:
I hope that this tutorial on How to insert Word Page Numbers Starting From a Specific Page? is helpful. You may ask your doubts in the comments. Also let me know if you want any VBA Macro codes that could help you and many others in their day to day life. I would definitely consider helping by creating tutorials for the same. Thanks.
Similar Articles:
- MS Word Shortcut Keys PDF - October 13, 2024
- What is MS Word and its Features PDF - October 10, 2024
- 10 Free Word Templates for Every Need - October 10, 2024