Home  >  Article  >  How to hide individual page numbers in a Microsoft Word document

How to hide individual page numbers in a Microsoft Word document

WBOY
WBOYforward
2023-05-13 22:10:045111browse

So you have a huge table on one of the pages of your Word document, and you don't want the page numbers to show on that page. Also, if the hidden page number is 7, you want to count the pages and the next page number should be 8. Well, you may have wasted a lot of time looking for a solution. Even if you find a solution, you may feel lost because you think it's too complex to implement. Well, Geek Page simplifies the complicated stuff for you.

In this article, we have explained how to easily omit a certain page number from a Word document in very simple steps that you can easily understand. Hope you found this article helpful.

How to omit a single page number

Step 1: First, let’s insert a normal page number in the footer.

To do this, open the document and click the Insert tab on the top ribbon.

From the Insert tab options, click the drop-down menu named Page Number and select the option where you want the page number to appear. We selected the "Bottom of Page" option, and additionally, we selected the Normal Number 2 format as our sub-option.

如何在 Microsoft Word 文档中隐藏单个页码

Step 2: If you view the document now, you can see that the page numberhas been successfully added to the footer.

如何在 Microsoft Word 文档中隐藏单个页码

Step 3: Next, double-click on any page number and press Delete keyDeletePage number.

如何在 Microsoft Word 文档中隐藏单个页码

Step 4: Now type the keys CTRL F9 to insert curly braces. Remember, typing doesn't work, you have to press the CTRL F9 keys yourself.

如何在 Microsoft Word 文档中隐藏单个页码

Step 5: Next, you must have the following code ready. We'll explain how to do this.

{ IF { PAGE }  "page_num_to_omit" { PAGE }}

Very simple, nothing fancy.

  1. Press the CTRL F9 keys simultaneously to get the first set of curly braces. This step will give you the result { }.
  2. Next, enter IF. So at the end of this step your code will be { IF }.
  3. Now press CTRL F9 again to insert another set of curly braces, your code should be { IF { } }.
  4. Now, inside the curly braces of IF, enter PAGE. PAGE is a field. So your code should be { IF { PAGE } }.
  5. Next, break out of the curly braces and enter . Here represents the inequality operator. At the end of this step, your code should look like { IF { PAGE } }.
  6. Now you have to specify the page numbers that you want to omit. You can specify any page number within double quotes. In the example below, we have omitted page 4. Therefore, the code at the end of this step should look like { IF { PAGE } "4" } .
  7. We are almost there. Press CTRL F9 one last time to insert another set of curly braces. This will give you the code { IF { PAGE } "4" { } }.
  8. Finally enter PAGE in the new curly braces, and your conditional footer is ready, { IF { PAGE } “4” { PAGE } } .

The code just says to include PAGE only if the page number is not equal to 4. Therefore, all page numbers except page number 4 are visible.

如何在 Microsoft Word 文档中隐藏单个页码

Step 6: You can now select andright-clickthe## you inserted #Conditional Footer and click the Update Fields option to see the results immediately.

如何在 Microsoft Word 文档中隐藏单个页码

Step 7: Viola! Yes, only page 4 is hidden, all other page numbers are visible, exactly as you requested!

如何在 Microsoft Word 文档中隐藏单个页码

Step 8: If you want torecoverhidden a specific page number and want all page numbers to be visible again, you can simply double-click on the page number , click on the Delete option and insert the following code just like how it was done in Step 5.

{ 页 }

要插入上述代码,您需要先同时按下CTRL + F9键,然后在它们之间键入PAGE。该代码只是说显示所有页码。

页脚现在将无条件显示所有页码。因此,不会隐藏任何页码。

如何在 Microsoft Word 文档中隐藏单个页码

The above is the detailed content of How to hide individual page numbers in a Microsoft Word document. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete