How do you unlock the print area in Excel?

  • Excel Tips
  • Excel Functions
  • Excel Formulas
  • Excel Charts
  • Word Tips
  • Outlook Tips

For printing specified ranges only, you can set print areas (Page Layout > Print Area > Set Print Area) in Excel. In some cases, you may want to make only print area visible when sharing with your colleagues, how to get it done? In this article, I will intrude several methods to only show print area in a worksheet in Excel.

  • Only show print area in Page Break Preview view in Excel
  • Only show print area with VBA in Excel
  • Only show print area with Kutools for Excel’s Set Scroll Area utility

Only show print area in Page Break Preview view in Excel

When we show a worksheet in the Page Break view with clicking the View > Page Break Preview, non-printing area’s background will be changed to dark gray automatically. See below screen shot:

How do you unlock the print area in Excel?

Note: You can also change to the Page Break Preview view with clicking the Page Break Preview button in the Status Bar.

How do you unlock the print area in Excel?

However, this method will not hide the non-printing area, and you can still view the data in the non-printing area.

One click to hide everything but selected range (hide unused column/rows/cells)

Most of time, we may only use part of worksheet with numeric blank cells/range left. Kutools for Excel’s Set Scroll Area utility can help you one click to hide everything except selected range, or hide all unused cells/rows/column/ranges easily. Full Feature Free Trial 30-day!

How do you unlock the print area in Excel?

Kutools for Excel- Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Get It Now

Only show print area with VBA in Excel

To hide non-printing area completely in Excel, you can try VBA macro. And you can do as follows:

Step 1: Press the Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Applications window.

Step 2: Click Insert > Module, and then paste following VBA code into the module window:

VBA: Only Show Print Area in Current Worksheet

Public Sub HideAllButPrintArea()
Dim xPrintRng As Range
Dim xFirstRng As Range
Dim xLastRng As Range
Application.ScreenUpdating = False
With Application.ActiveSheet
.Cells.EntireColumn.Hidden = False
.Cells.EntireRow.Hidden = False
If .PageSetup.PrintArea <> "" Then
Set xPrintRng = .Range(.PageSetup.PrintArea)
Else
Set xPrintRng = .UsedRange
End If
Set xFirstRng = xPrintRng.Cells(1)
Set xLastRng = xPrintRng.Cells(xPrintRng.Count)
If xFirstRng.Row > 1 Then
.Range(.Cells(1, 1), xFirstRng(-0, 1)).EntireRow.Hidden = True
End If
If xFirstRng.Column > 1 Then
.Range(.Cells(1, 1), xFirstRng(1, 0)).EntireColumn.Hidden = True
End If
If xLastRng.Row < .Rows.Count Then
.Range(xLastRng(2, 1), .Cells(.Rows.Count, 1)).EntireRow.Hidden = True
End If
If xLastRng.Column < .Columns.Count Then
.Range(xLastRng(1, 2), .Cells(1, .Columns.Count)).EntireColumn.Hidden = True
End If
End With
Application.ScreenUpdating = True
End Sub

Step 3: Press F5 key or click the Run button to run this VBA macro.

Then you will see non-printing area is hidden at once, and only the print area is shown in current worksheet. See below screen shot:

How do you unlock the print area in Excel?

Notes:

  1. When there is only one print area in current worksheet, the VBA macro works well.
  2. This method does not support undo. To show non-printing area, you have to manually unhide the non-printing area, or apply Kutools for Excel’s Hide > Unhide All Ranges utility.


Only show print area with Kutools for Excel’s Set Scroll Area utility

If you have Kutools for Excel installed, its Set Scroll Area utility will help you only show a print area in current worksheet easily.

Kutools for Excel- Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Free Trial Now!

Step 1: Select the print area in current worksheet.

Note: If you can’t find out the print area quickly, you can press F5 key to open the Go To dialog box, select the print area name and click the OK button as below screen shot shown. But this method will select all print areas in current worksheet.

How do you unlock the print area in Excel?

Step 2: Click the Kutools > Show / Hide > Set Scroll Area.

How do you unlock the print area in Excel?

Then you will see only the selected print area is shown in current worksheet at once as below screen shot shown:

How do you unlock the print area in Excel?

Notes:

  1. Kutools for Excel’s Set Scroll Area supports undo, and you can press the Ctrl + Z keys simultaneously to show hidden non-printing area.
  2. You can click Kutools > Show / Hide > Unhide All Ranges to show hidden non-printing area immediatelly.

Kutools for Excel- Includes more than 300 handy tools for Excel. Full feature free trial 30-day, no credit card required! Get It Now


Demo: only show print area in a worksheet in Excel

Kutools for Excel includes more than 300 handy tools for Excel, free to try without limitation in 30 days. Download and Free Trial Now!


Related articles:


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

How do you unlock the print area in Excel?


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

How do you unlock the print area in Excel?

Comments (1)

No ratings yet. Be the first to rate!

How do I enable the print area in Excel?

On the worksheet, select the cells that you want to define as the print area. Tip: To set multiple print areas, hold down the Ctrl key and click the areas you want to print. Each print area prints on its own page. On the Page Layout tab, in the Page Setup group, click Print Area, and then click Set Print Area.

Why is Excel not allowing me to print?

There are several possible reasons: There may not be enough memory available. Try closing files and programs you aren't using. If you use a network for printing, there may be a problem with the network connection or the printer driver.

How do you unlock an area in Excel?

On the Home tab, click the Format Cell Font popup launcher. You can also press Ctrl+Shift+F or Ctrl+1. In the Format Cells popup, in the Protection tab, uncheck the Locked box and then click OK. This unlocks all the cells on the worksheet when you protect the worksheet.

How do I reset my print area?

How to clear print area in Excel.
Open the worksheet of interest..
Switch to the Page Layout tab > Page Setup group and click the Clear Print Area button..