# Worksheet Overview

Worksheets contain the elements, such as the cell grid area, which provide the principal work entities for &gnum; users. The worksheet grid area allows users to enter data, develop analyses of these data, and display both data and results. Worksheets also contain graphical elements such as graphs and widgets. Worksheets are grouped into a workbook which is stored in a &gnum; file. The manipulation of workbooks is explained in while the material below explains the manipulation of worksheets.

Worksheets contain both working elements and metadata elements. The working elements include the data contents of cells in the grid area, cell comments, cell formatting, and sheet objects, such as graphical plots. The metadata include the worksheet name and worksheet settings controlling the visual appearance of the worksheet or the display of the worksheet.

This section explains the main ways to manipulate &gnum; worksheets. explains how to navigate the worksheet to change the area which is displayed and change the currently selected area. presents several alternative settings which alter the display of cell contents, of the grid area, of the worksheet as a whole or of &gnum; itself. explains how to alter settings which affect all the contents of the worksheet such as the status of the content protection mechanism. gives a brief explanation of the print settings which apply specifically to each worksheet; a more complete explanation of the print settings is given in . Finally, explains how the entire collection of worksheets can be manipulated so as to add, duplicate, delete or re-order the worksheets within a workbook.

# Worksheet Navigation

&gnum; worksheets can be conceived of as a single, continuous, two-dimensional grid of cells. However, &gnum; cannot display the entire grid at once but only shows a portion of the worksheet. Since only a portion of the worksheet can be seen at any particular time, &gnum; provides users with several ways to change the portion of the worksheet that is displayed. explains the various ways that the display window can be moved to a different section of the worksheet grid, while , further below, explains more powerful methods to re-organize the display of the cell grid area.

## Moving Around a Worksheet

## Moving the Selection

# Worksheet Display

The display of each worksheet can be controlled by several settings and configurations. The worksheet, conceptually, consists of a single continuous two dimensional grid of cells arranged in rows by columns, and &gnum;, by default, displays a small portion of the worksheet area as a continuous region.

A worksheet is created with the number of rows and columns specified by the preference setting that can be adjusted on the Windows tab of the Preference Dialog (see ).

The maximum number of rows in a sheet is 16,777,216 and the maximum number of columns is 16384. The dimensions of a sheet can only be set to powers of 2.

The size of an existing sheet can be increased through the Resize Sheet dialog accessible through the sheet tab context menu (see ) or the Sheet submenu of the Edit menu (see ).

## Worksheet Appearance

A number of aspects of how a worksheet is displayed in the cell grid can be modified. To adjust the display of formulas or results, A1 or R1C1 notation for cell references, how cells with a value of zero are displayed, the presence or absence of grid lines or row or column headers, or whether columns are ordered left to right or right to left, see the description of the submenu.

## Workbook Appearance

This section has not yet been written.

### Zoom: Changing the Scale of a Sheet

This section has not yet been written.

### Full Screen Mode

This section has not yet been written.

### Displaying Workbook Tabs

This section has not yet been written.

### Displaying Grid Area Scrollbars

This section has not yet been written.

## Grouping Rows and Columns

## Display Panes

# General Settings

## Content Protection

# Print Settings

# Managing Worksheets

This section discusses functions that manipulate worksheets as a whole, rather than their contents.

## Worksheets and the Menubar

&gnum; provides a number of options for manipulating worksheets as a whole, rather than the contents of the worksheets. These operations are documented in the later section . In addition to the worksheet tab context menu and the Sheet submenu of the Edit menu, some of these operations are also available from other menus:

- The Insert function is also available as Sheet on the Insert menu.

- The Rename and Manage Sheets dialogs are also available on the Format ▶ Sheet submenu.

In addition to worksheet manipulation, &gnum; provides the ability to control various aspects of how or whether a worksheet is displayed in the cell grid. Several such controls are included in the , described in a later section. Other worksheet display controls are located in the submenu, which are described there.

## Worksheet Tab Context Menu

Except for the addition of the two Select submenus, which appear only on the context menu, this is the same as the Edit ▶ Sheet submenu. The Manage sheets... dialog is discussed in , which follows the description of the context menu.

### The Context Menu for Worksheet Tabs

An image of the context menu of the worksheet tabs.

- Insert — Select this menu item to insert a new, empty worksheet ahead of the current worksheet. The new worksheet is the same size as the current one.

- Append — Select this menu item to add a new, empty worksheet at the end of the existing worksheets. The new worksheet has the default size, which can be set in the Gnumeric Preferences dialog in the “Windows” tab.

- Duplicate — Select this menu item to add a copy of the selected worksheet immediately after the selected worksheet.

- Remove — Select this menu item to delete the selected worksheet.

- Rename — Select this menu item to access the Rename Sheet dialog, which lets you change the name of a single worksheet. To rename more than one worksheet, the Manage Sheets dialog may be more convenient.

- Resize... — Select this menu item to access the Resize Sheet dialog. Use the sliders to adjust the size of the sheet, then click OK. Worksheet dimensions are restricted to powers of two. By default the Resize Sheet dialog changes the sizes of all worksheets in the current workbook. To change the size of a single worksheet, clear the check mark next to Apply change to all sheets before clicking OK.

- Select and Select (sorted) — Select one of these menu items to access a menu of worksheet names. Click on one of the names to select that worksheet. The displayed tabs are adjusted so that the selected worksheet's tab is visible, and the selected worksheet is displayed in the cell grid.

## Manage Sheets dialog

The Manage Sheets dialog can be accessed from the worksheet tab context menu, from the Edit ▶ Sheet submenu, or from the Format ▶ Sheet submenu.

### Manage Sheets dialog

An image of the Tools menu.

The worksheets contained in the current workbook are listed in the upper left portion of the dialog. When Show advanced sheet properties is enabled, the Dir, Rows, and Cols fields are included. A worksheet can be selected by clicking anywhere in in its line, although clicking one of the icons will toggle its associated property along with selecting the worksheet. Multiple selection, using the Shift and Ctrl keys, can be used to operate on more than one worksheet at a time. The current worksheet shown in the cell grid tracks the selected worksheet in this dialog. That is, selecting a single worksheet from the list also causes that worksheet to be displayed in the cell grid. When more than one worksheet is selected in the list, the first one in the list is set as the current worksheet in the cell grid. Some operations are not available when more than one worksheet is selected. The buttons for those operations are dimmed when they are unavailable.

The Lock column of the list shows an icon to indicate whether the worksheet is locked,

Locked icon

, or unlocked,

Unlocked icon

. Click on the displayed icon to toggle the sheet's lock status. Locking a worksheet prevents accidental modification of the data on that worksheet.

The Viz column of the list shows an icon,

Visible icon

, if the worksheet is currently visible. The Viz column is blank if the worksheet is not visible. Click in this column to toggle the worksheet's visibility. When the visibility attribute is turned off, the worksheet does not get a tab at the bottom of the &gnum; window. Its data is preserved, and references to cells on the non-visible sheet continue to access the expected values. Note that a non-visible worksheet cannot be selected from the list, although the active fields in the list continue to function. To apply functions that require selecting the worksheet, such as Insert or Remove, first click in the Viz column to make it visible.

The Dir column of the list shows a right-pointing or left-pointing arrow, depending on whether the sheet is currently set to be displayed left-to-right or right-to-left. Click on the arrow to toggle a worksheet's display direction.

The Rows and Cols columns show the current size of each worksheet. Worksheet size cannot be adjusted here.

To change the name of a worksheet, click in its New Name field until the contents of the field, if any, are highlighted, then type the desired new name and press Enter. If the new name duplicates a name already in use, a warning is displayed. You can change the new name or you can assign a new name to the other worksheet with that name. Name changes are not applied immediately. Instead, &gnum; waits until you click on the Apply Name Changes button and makes all the name changes at once. When you apply the name changes, &gnum; automatically updates all cell references that include worksheet names to use the new names.

The worksheets can be re-ordered in the workbook by pressing the left mouse button in a worksheet's line and dragging it up or down in the list of worksheets. You can also select a single worksheet and then click on the Up or Down button to move it up or down in the list. Alternatively, you can sort the worksheets into ascending or descending order by name by clicking on the Ascending or Descending button.

You can add an empty worksheet by clicking on Insert, to add the worksheet ahead of the selected worksheet, or on Append, to add the worksheet after the last sheet in the list. Insert creates a new worksheet the same size as the currently selected worksheet, while Append creates a new worksheet of the default size.

Click on Remove to delete the currently selected worksheet or worksheets.

Click on Duplicate to add an exact copy of the selected worksheet to the list immediately following the selected sheet. The name of the new worksheet is the same as the name of the duplicated worksheet, but with “(n)” appended, where n is the smallest integer greater than 1 that produces a unique worksheet name. If the worksheet name already ends in “(n)”, nothing is appended. Instead, the value of n is increased to the smallest value that produces a unique worksheet name.

To change the background color of the tabs for the selected worksheets, click on the background color fill button,

Background color button

to set the background color to the color shown below the bucket icon, or click on the downward-pointing arrow to access the color selection dialog.

Similarly, to change the color of the text in the tabs of the selected worksheets, click on the text color button,

Text color button

to set the text color to the color shown below the character icon, or click on the downward-pointing arrow to access the color selection dialog.

## Adding a Blank Worksheet

A new, empty worksheet can be added to a workbook by insertion ahead of the worksheet currently displayed in the cell grid or by appending one after the last worksheet.

A new worksheet can be inserted ahead of the current worksheet by selecting Sheet from the Insert menu or Insert from the worksheet tab context menu or by using the Insert function of the Manage Sheets dialog described above. The new worksheet will be the same size as the one currently displayed.

A new worksheet can be added to the end of the list by selecting Append from the worksheet tab context menu or by using the Append function of the Manage Sheets dialog described above. The new worksheet will be the default size.

## Copying or Pasting a Worksheet

&gnum; does not directly support copying and pasting of worksheets, however copying blocks of cells provides a very similar function. For example, to replace the contents of worksheet Sheet3 with the contents of Sheet1, begin by selecting the worksheet tab for Sheet1. Select all the cells in Sheet1 by clicking on the blank rectangle at the top of the row headers, to the left of the column headers, or by selecting Select ▶ All from the Edit menu. Next use Edit ▶ Copy or Edit ▶ Cut to copy the worksheet contents to the clipboard, depending on whether you want to copy or move the information. Select the worksheet tab for Sheet3 and select cell A1 or the entire worksheet, then use Paste or Paste Special from the Edit menu to copy the contents of Sheet1 into Sheet3.

Use of Paste Link in the Paste Special dialog should be avoided when operating on whole worksheets, as it creates links to every selected cell in the first worksheet, 16,777,216 cells in a worksheet of the default size, and has no option to skip empty cells in the first worksheet.

A similar operation can be performed using the Manage Sheets dialog. Duplicate the worksheet to be copied, then move the copy to precede or follow the worksheet it is to replace. Delete the second worksheet and rename the copy. This operation is similar to the copy and paste technique described above, but this method also copies metadata, such as the display appearance controlled by the Format ▶ Sheet submenu.