Disabling Page Layout View

Written by Allen Wyatt (last updated February 18, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


Chris notes that Excel supports both Normal and Page Layout views. He wonders if there is a way to disable Page Layout view so the user of a workbook cannot select it.

Excel makes these two views (Normal and Page Layout) available from the View tab of the ribbon. One might think that the solution is to simply modify the user interface so that the Page Layout tool is no longer available on the ribbon. This, unfortunately, is easier said than done.

If you are using Excel 2007, the user interface is notoriously hard to change. It requires writing XML code and making sure that the code is executed every time the workbook is opened. If you like notoriously hard things, you can find a bit about how to start at this page:

http://msdn.microsoft.com/en-us/library/aa338202.aspx

If you are using Excel 2010 or a later version, then modifying the user interface is a bit easier. You can do it by following these steps:

  1. Click the File tab and then click Options. Excel displays the Excel Options dialog box.
  2. At the left side of the dialog box click Customize Ribbon. (See Figure 1.)
  3. Figure 1. The Excel Options dialog box.

  4. In the right column of the dialog box, click the small plus sign at the left of the View tab entry. Excel shows you the options that are under the View tab.
  5. Click once on the Workbook Views option.
  6. Click the Remove button.
  7. Click OK.

That's it. Now, if you go look at the View tab, you'll notice that the user can no longer switch to Page Layout view. In fact, the user cannot pick any view other than whatever view you happen to be in at the current time. This change affects only the current machine, for all workbooks, and cannot be tied to any particular workbook. (The reason is that while you can modify the ribbons a bit in Excel 2010, you cannot modify them in macros. It's a big pain and you need to go back to writing XML code like in Excel 2007.)

Perhaps a better solution is to create a small macro that will make sure that the worksheet is always being displayed in Normal view. This is easy to do; just right-click on a worksheet tab and choose View Code from the resulting Context menu. In the code window, enter the following:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    ActiveWindow.View = xlNormalView
End Sub

This code causes Excel to switch to Normal view every time someone changes what is selected on the screen. Someone could use the tools on the View tab of the ribbon to switch to Page Layout view, but as soon as they select a different cell the macro kicks in and switches back to Normal view.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the ExcelTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12139) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Making Ignore All Work for a Document on All Systems

When you tell Word's spell checker to ignore all instances of a misspelling, you may expect that the misspelling will be ...

Discover More

Leading Zeros in Page Numbers

Page numbers in Excel printouts are typically simple counters, without much chance for embellishment. If you want to add ...

Discover More

The Line that Won't Go Away

Have you ever had a line appear on your document that you can't seem to get rid of? It could be due to a built-in ...

Discover More

Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!

More ExcelTips (ribbon)

Displaying Page Breaks

Page breaks can be added to a worksheet manually or automatically. If you want to see where Excel places page breaks, ...

Discover More

Turning Off Insert Options

When you insert rows, columns, or cells in a worksheet, does the resulting Insert Options icon bother you? Here's how to ...

Discover More

Animated Recalculation in Excel

Excel includes some animation capability that is enabled by default. If the animation is bothersome to you, then you'll ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is four less than 7?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.