Preparing Workbooks to Print and Share

Chapter 3: Preparing Workbooks to Print and Share

Learning Objectives

  1. Change page setup, and add built-in and custom headers and footers.
  2. Set a print area and configure print settings.
  3. Save and export workbooks in other file formats, and know what each format keeps.
  4. Inspect a workbook for hidden information, accessibility problems and compatibility problems, and fix what you find.
  5. Add, reply to, resolve and delete comments, and add, edit and show notes.

A workbook you build for yourself only has to work. A workbook you hand to someone else has to print cleanly, open in their software, and not carry hidden information you didn't mean to share. This chapter covers the MO-210 skills for getting a workbook ready for other people: page setup, headers and footers, printing, other file formats, inspecting a workbook, and comments and notes.

3.1 Page setup

Page setup controls how a worksheet fits on paper or in a PDF. Most settings are on the Page Layout tab, and all of them are in the Page Setup dialog box. To open it, click the small arrow (the dialog box launcher) in the corner of the Page Setup group.

3.1.1 The Page Layout tab

Command What it does
Margins Chooses Normal, Wide or Narrow margins, or Custom Margins to type exact sizes.
Orientation Chooses Portrait (tall) or Landscape (wide).
Size Chooses the paper size, such as Letter or A4.
Print Area Sets or clears the range that prints. See "Print areas and print settings" below.
Breaks Inserts or removes manual page breaks.
Print Titles Opens the Sheet tab of Page Setup to repeat rows or columns on every page.
Width, Height, Scale In the Scale to Fit group, shrinks the sheet to fit a number of pages wide or tall, or to a percentage.

3.1.2 The Page Setup dialog box

The dialog box has four tabs:

When a list runs onto several pages, only the first page shows the column headings. Print titles repeat rows at the top of every page, or columns at the left of every page. Choose Page Layout › Print Titles, click in Rows to repeat at top, and select the heading row in the worksheet (Excel writes it as $1:$1). Use Columns to repeat at left to repeat columns the same way.

"Fit" tasks are worded by result. "Ensure that all columns print on one page" means Width: 1 page with Height: Automatic, or Fit All Columns on One Page in the Print settings. "Print the worksheet on a single page" means Fit to 1 page wide by 1 tall, or Fit Sheet on One Page.

3.2 Headers and footers

A header prints at the top of every page, and a footer prints at the bottom. Each has a left, center and right section.

Choose Insert › Header & Footer. Excel switches to Page Layout view and places the cursor in the center header section. Type text, or use the Header & Footer tab to insert elements that update automatically:

Element Code it inserts Prints
Page Number &[Page] The current page number
Number of Pages &[Pages] The total number of pages
Current Date &[Date] Today's date when printed
Current Time &[Time] The time when printed
File Path &[Path]&[File] The workbook's folder and file name
File Name &[File] The workbook's file name
Sheet Name &[Tab] The worksheet's name
Picture &[Picture] An image, such as a logo

You can mix codes with text. For example, typing Page then inserting Page Number, then typing of and inserting Number of Pages produces "Page 1 of 3."

Click a different section to move between left, center and right. Use Go to Footer to switch to the footer. Click any cell in the worksheet to leave the header, then return to Normal view if you like.

3.2.2 Built-in headers and footers

The Header and Footer buttons on the Header & Footer tab, and the drop-downs on the Header/Footer tab of Page Setup, list ready-made combinations such as "Page 1 of ?" and "Sheet1, Confidential, Page 1." Choose one to fill all three sections at once.

The Header & Footer tab's Options group has four check boxes:

Headers and footers belong to one worksheet. If a task asks for a footer on every sheet, either add it to each sheet or group the sheets first (chapter 4) so one change applies to all of them. Remember to ungroup afterward.

3.3.1 Setting a print area

A print area limits printing to one range. Select the range and choose Page Layout › Print Area › Set Print Area. Excel creates a defined name, Print_Area, for that sheet, and only that range prints.

You can also type the print area in the Print area box on the Sheet tab of Page Setup.

File › Print (Ctrl+P) shows a preview and the print settings:

Setting Choices
Copies The number of copies.
Printer Which printer, or Microsoft Print to PDF.
What to print Print Active Sheets, Print Entire Workbook, Print Selection, and the check box Ignore Print Area.
Pages A range of pages to print, such as 2 to 3.
Collated Prints whole copies in order (1, 2, 3, 1, 2, 3) or groups each page (1, 1, 2, 2, 3, 3).
Orientation, paper size, margins The same as on the Page Layout tab.
Scaling No Scaling, Fit Sheet on One Page, Fit All Columns on One Page, Fit All Rows on One Page, or Custom Scaling Options.

Changes you make here are saved with the workbook, the same as on the Page Layout tab. On the exam you'll configure print settings but won't actually print.

To print several sheets but not the whole workbook, select their tabs first (Ctrl+click each tab), then choose Print Active Sheets.

3.4 Saving in other file formats

Excel's own format is the Excel Workbook (.xlsx). Sometimes you need a different one: a PDF for someone who doesn't need to edit the file, a CSV file to load into another program, or a macro-enabled workbook. Choose File › Save As (or File › Save a Copy when AutoSave is on), choose a location, and pick a format from the Save as type list.

Format Extension Keeps Use it for
Excel Workbook .xlsx Everything except macros The default
Excel Macro-Enabled Workbook .xlsm Everything, including macros Workbooks with macros (chapter 12)
Excel Binary Workbook .xlsb Everything, in a smaller, faster file Very large workbooks
Excel 97-2003 Workbook .xls Most content; newer features are lost or changed People using very old versions of Excel
Excel Template .xltx Everything, as a starting point for new workbooks Forms and reports you reuse
CSV UTF-8 (Comma delimited) .csv Values of the active sheet only; no formulas, formatting or other sheets Loading data into another program
Text (Tab delimited) .txt Values of the active sheet only Same as CSV, with tabs
PDF .pdf The printed appearance Sharing a file that won't be edited
OpenDocument Spreadsheet .ods Most content LibreOffice and other programs that use the OpenDocument format

3.4.1 Exporting to PDF

Choose File › Export › Create PDF/XPS Document › Create PDF/XPS, or choose PDF as the Save as type. Click Options to choose what to publish: the selection, the active sheet(s), the entire workbook or a table, and which pages. The PDF uses each sheet's page setup, print area, headers and footers.

File › Export › Change File Type lists the same formats as Save As, grouped by kind.

When you save as CSV or text, Excel warns that some features will be lost. Only the active sheet is saved, and only its values. If a task asks you to save a CSV copy of a particular sheet, select that sheet first. Excel keeps the original workbook open under the new name, so save it again as .xlsx if you keep working.

3.5 Inspecting a workbook

Before you share a workbook, check it for three kinds of problems: hidden information, accessibility problems and compatibility problems. All three checks are under File › Info › Check for Issues.

3.5.1 The Document Inspector

Inspect Document looks for information you might not want to share:

Check the categories to search for and click Inspect. For each category with a result, the inspector shows a Remove All button. Click it only for the categories the task names, because removing data can't be undone. Click Close when you're done.

Removing Hidden Rows and Columns deletes them, along with their data, which can break formulas that refer to them. Remove only what the task asks for.

3.5.2 The Accessibility Checker

The Accessibility Checker looks for things that make a workbook hard to use with a screen reader or for people with low vision. Start it with Check for Issues › Check Accessibility or Review › Check Accessibility. The pane lists:

Click an item to select the object it's about. Expand Additional Information to see why it's a problem and how to fix it, or click the arrow next to the item for a Recommended Actions list, which often fixes the problem in one click.

Common fixes:

3.5.3 The Compatibility Checker

The Compatibility Checker (Check for Issues › Check Compatibility) lists features that won't work in earlier versions of Excel, such as new functions or chart types, and how many times each appears. Click Find to go to each instance. Select versions to show limits the list to particular versions. Check Check compatibility when saving this workbook to run the checker whenever the file is saved in an older format.

3.6 Comments and notes

Excel has two ways to attach a remark to a cell:

3.6.1 Working with comments

To Do this
Add a comment Select the cell and choose Review › New Comment (or right-click › New Comment). Type, then click Post or press Ctrl+Enter.
Reply Open the comment, type in Reply, and post.
Edit Point at your comment and click Edit.
Resolve Click … (More thread actions) › Resolve thread. A resolved comment stays in the file and can be reopened.
Delete Choose Review › Delete, or … › Delete thread.
Move between comments Review › Previous Comment and Next Comment.
See all comments Review › Show Comments opens the Comments pane.

Typing **[@*]* and a name in a comment mentions that person and notifies them, if the workbook is stored in OneDrive or SharePoint.

3.6.2 Working with notes

To Do this
Add a note Select the cell and choose Review › Notes › New Note (Shift+F2). Type the note and click outside it.
Edit Review › Notes › Edit Note, or right-click › Edit Note.
Show one note all the time Right-click › Show/Hide Note.
Show all notes Review › Notes › Show All Notes.
Delete Right-click › Delete Note, or Review › Delete.
Turn notes into comments Review › Notes › Convert to Comments.

3.6.3 Printing comments and notes

By default, comments and notes don't print. On the Sheet tab of Page Setup, the Comments and notes list chooses At end of sheet (printed on a separate page) or As displayed on sheet (notes print where they appear; show them first).

Read the task's wording carefully. "Add a comment" means a threaded comment. "Add a note" means a note. If a task says to reply to or resolve something, it's a comment, because notes can't be replied to or resolved.

3.7 Practice

Simmy assessment goes here. Exam-style tasks on page setup, headers and footers, print areas and settings, other file formats, inspecting a workbook, and comments and notes. When a student misses a task, Simmy builds the AI prompt (the task as worded, what the student did, and the correct result).

Starting data. A workbook named Harbor Clinic Budget with two sheets.

Budget (A1:E26). A1 holds the title "FY27 Operating Budget". Row 3 is headings, rows 4–24 are 21 expense lines, and row 25 is totals. Columns: Category (A), Line Item (B), FY26 Actual (C), FY27 Budget (D), Change (E, formula =D4-C4). Sample rows:

Category Line Item FY26 Actual FY27 Budget Change
Staff Nursing salaries 1,240,000 1,302,000 =D4-C4
Staff Front desk wages 186,500 192,100 =D5-C5
Supplies Medical supplies 214,300 225,000 =D6-C6
Facilities Rent 168,000 172,800 =D7-C7
… (17 more lines)
Total =SUM(C4:C24) =SUM(D4:D24) =SUM(E4:E24)

Cells A1:E1 are merged. Cell D6 has a note reading "Includes new vendor contract." Cell D7 has a comment from Pat Morgan: "Is the rent increase confirmed?" Column F is hidden and holds an old draft column. The workbook's Author property is "Pat Morgan".

Sheet2: a 4-row list of grant sources, with a chart that has no alternative text.

Tasks.

  1. Change the orientation of the Budget worksheet so that the page is wider than it is tall, and ensure that all columns print on a single page. Expected result: Budget page setup is Landscape; Fit to 1 page wide, height Automatic. Objective: Modify page setup.
  2. Configure the Budget worksheet so that row 3 prints at the top of every page. Expected result: Rows to repeat at top = $3:$3. Objective: Modify page setup.
  3. Add a footer to the Budget worksheet that shows the sheet name in the left section and "Page n of m" in the right section, where n is the current page and m is the total number of pages. Expected result: left footer &[Tab]; right footer Page &[Page] of &[Pages]. Objective: Customize headers and footers.
  4. Configure the Budget worksheet so that only the range A3:E25 prints. Expected result: Print_Area for Budget = $A$3:$E$25. Objective: Set a print area.
  5. Reply to the comment in cell D7 with the text "Yes, the lease renewal was signed." Then resolve the thread. Expected result: D7's comment thread has the reply and is resolved. Objective: Manage comments and notes.
  6. Change the note in cell D6 to a threaded comment. Expected result: D6 has a comment with the text "Includes new vendor contract." and no note. Objective: Manage comments and notes.
  7. Rename Sheet2 to Grants and add the alternative text "Bar chart of grant funding by source" to its chart. Expected result: sheet named Grants; chart alt text set as given. Objective: Inspect workbooks and correct issues (accessibility).
  8. Inspect the workbook and remove the document properties and personal information. Do not remove any other content. Expected result: Author and other personal properties cleared; hidden column F, comments and notes still present. Objective: Inspect workbooks and correct issues.
  9. Save a copy of the Budget worksheet in PDF format, in the default folder, with the name FY27 Budget. Expected result: a PDF named FY27 Budget.pdf containing only the Budget sheet's print area. Objective: Save and export workbooks in alternative file formats.