Exploring File Management Fundamentals

One of the advantages of working with computers is the convenience of electronic files. In this section, we describe both the usual and unusual ways you can manage your Excel files.

To create a new workbook, click the File tab, and then click New to display the Available Templates screen shown in Figure 2-20. With Blank Workbook selected, press Enter (or click the Create button on the right), and a fresh workbook opens. Each new workbook you create in the current Excel session is numbered sequentially: Book1, Book2, and so on.

In the Available Templates screen, you can create all kinds of new workbooks using templates or existing workbooks as starting points. The template you select on the left side of the window controls what appears in the sample display on the right. When you click a template icon (other than the Blank Workbook icon), the available options for that category appear in the screen or in a separate dialog box. Click the little Back arrow at the top of the screen to return to the Available Templates screen. The categories include (but are not limited to) the following:

Excel 2010, being more Web connected than ever, takes advantage of this by storing most templates on the Office Online Web site, instead of putting them on your computer. This not only saves a little space on your hard disk but also makes it possible to offer many more templates than would be possible on CDs, makes it easy for developers to keep them up to date, and provides a continually updated source of new templates. Figure 2-22 shows just a few of the templates available in one of the categories.

There are a few templates created when you first install Excel, and these are available when you click the File tab, click New, and then click Sample Templates, as shown in Figure 2-23.

Creating your own templates is a great idea for worksheets you use a lot. You can click New From Existing in the Available Templates window to open any workbook as a template. Better yet, you can create, organize, and format a workbook the way you want (minus the data), then click the File tab, click Save As, and choose Excel Template in the Save As Type list. When you click the Save button, Excel automatically installs your new workbook in a special folder as a template. You can find this folder in the following locations:

Templates in this folder appear in the New dialog box when you click My Templates in the Available Templates screen, as shown in Figure 2-24.

When you click the File tab, click New, and then click My Templates, the New dialog box appears, which derives its contents from a special folder installed by the Microsoft Office system, as described in Installing Your Own Templates on the previous page. You can create your own personalized subfolders in this special folder that in turn become tabs in the New dialog box—but only when they contain valid template files. The name of each folder becomes the title of each new tab. Figure 2-25 shows the New dialog box with a new tab, which appears after creating a folder in the Templates folder and adding an Excel template file.

Arguably, the most important function of any computer application is preserving data. In Excel, you can save your files in many ways, including by clicking the Save, Save As, Publish, Close, or Exit command and—the easiest way to save—by clicking the Save button on the Quick Access Toolbar.

One other command that saves your workbooks is the Share Workbook command in the Changes group on the Review tab. When you click this command, you save your workbook in shared mode. Besides saving the file, this command makes the workbook available to others on a network, who can then open it and make changes of their own.

The first time you save a file, the Save As dialog box opens, as shown in Figure 2-26.

The Windows 7 (or Windows Vista) version of the Save As dialog box has a lot more bells and whistles than previous versions. This is also true with other dialog boxes that are provided by the operating system, including Save and Open. The dialog box has a sophisticated file interface that includes a number of useful features, such as the ability to find files by using a date range you specify using a calendar, as shown in Figure 2-26. For details, click the Help button (the question mark icon) in the Save As dialog box to display the corresponding Windows Help file.

File names in Excel can have up to 218 characters. They can include any combination of alphanumeric characters, spaces, and special characters, with the exception of the forward slash (/), backslash (\), greater-than sign (>), less-than sign (<), asterisk (*), question mark (?), quotation mark (“), pipe symbol (|), colon (:), and semicolon (;). Although you can use any combination of uppercase and lowercase letters, keep in mind that Excel does not distinguish case in file names. For example, to Excel the names MYFILE, MyFile, and myfile are identical.

The old familiar MS-DOS three-character file name extensions, which now come in a four-character version as well, help identify your Excel files, and they are added automatically when you save a file. Table 2-1 lists Excel extensions in the order in which they appear in the Save As dialog box’s Save As Type list (except for Workspace, which doesn’t work there—see Saving the Entire Workspace on page 60).

When you open a workbook in Excel 2010 that was created in a previous version of Excel, it automatically opens in Compatibility mode, a condition that is indicated in the Excel title bar, as shown in Figure 2-27. You can always tell by looking at the title bar whether you’ve converted a file to the new format.

You can work normally with Compatibility mode, and when you save the file, it remains in the old file format. If, however, you make any changes using features that are not compatible with the older version, the Excel Compatibility Checker intervenes when you save and displays a dialog box like the one in Figure 2-28.

The Compatibility Checker lets you know exactly what is causing the problem, so you can click Cancel and rework your worksheet using a different approach or save it anyway. You can click the Find or Fix links in the Compatibility Checker dialog box to highlight or correct each item that is causing compatibility problems. Clicking the Copy To New Sheet button adds a new worksheet to the current workbook entitled Compatibility Report, containing a copy of the information displayed in the dialog box—sort of a compatibility paper trail. If you clear the Check Compatibility When Saving This Workbook check box, this dialog box no longer opens when you save the current workbook. You might prefer this if you plan to repeatedly edit and save without updating the workbook to the new file format. But fear not, you can always look for problems at your convenience; click the File tab, click the Check For Issues button, and then click Check Compatibility to display the same dialog box shown in Figure 2-28.

Tip

INSIDE OUT What Doesn’t Work in Compatibility Mode?

When Compatibility mode is on, Excel disables a number of features that produce results that cannot be transferred to older versions of Excel. You can still click disabled commands, but when you do, Excel displays a ScreenTip explaining why you can’t use them. For example, Excel 2010 allows 64 levels of nesting in formulas (parenthetical expressions within expressions), but previous versions allowed only 7. If you are working on a worksheet where you try to exceed the previous limitation, Excel prevents it and displays an error message:

image with no caption

Here are some of the things that can trigger compatibility error messages:

In case you’re wondering how to get out of Compatibility mode, all you have to do is use the Save As command to save the workbook in one of the new file formats, such as XLSX or XLSM, and then close and reopen the new converted file you just saved.

If you need to save files in other formats, the Save As Type drop-down list in the Save As dialog box includes a number of special formats you can choose, including Excel 97-2003 Workbook and Microsoft Excel 5.0/95 Workbook. Users of any of these versions of Excel can open a file saved in this format, but if someone using Excel 95 or Excel 5 saves changes to this file, any features from Excel versions 2000 through 2003, as well as the formatting, are lost. To alleviate this and other problems, you can download the Microsoft Office Compatibility Pack from the Office Online Web site to open and edit Excel 2007 and Excel 2010 files using earlier versions of Excel. When you use these converters, you don’t have to save files in the old file format, and you don’t have to upgrade the old Excel installation. You do, however, have to make sure you have the latest software updates installed on both ends of the transaction.

Although Microsoft trimmed some of the lesser-used file formats from the last release, the volume of native Excel file formats has swelled somewhat, largely due to accommodating “legacy” file formats—that is, file formats employed in previous versions of Excel. We’ll explain the major differences here:

In addition to these “XL” file types, there are two XML file types that are somewhat related. XML Spreadsheet 2003 (XML) is the previous XML file format provided as an option in Excel 2003. Another format, XML Data (XML), shares the same extension but produces entirely different results. This format is a proprietary XML format that requires specific programmatic data maps to be present before you can even save the file. You’ll know if you need it.

When you click the File tab, the Backstage view screen that first appears includes a thumbnail view of the current workbook. Just below the thumbnail, click Properties, and then click Show Document Panel to display the Document Properties panel, which appears below the ribbon, as shown in Figure 2-31. Use this to record general information about the active workbook. If you juggle a lot of files, getting into the habit of adding properties can make it a lot easier to find something later. Windows looks at these property values when you use the Search command to locate files on your computer.

You can quickly view properties for the active workbook by clicking the File tab and looking on the right side of the Info screen. Several properties are displayed there beneath the thumbnail of the workbook. Click Properties, and then click Show All Properties to expand the list visible on the Info screen, as shown in Figure 2-32. It’s a lie, though; not all properties are displayed there. For the rest of the story, you must click Properties, then click Advanced Properties to display a dialog box full of information, also shown in Figure 2-32. Most of the information visible on the Document Properties panel is available and editable on the Summary tab.

Click the View tab, and then click Save Workspace in the Window group to save a snapshot of your current Excel environment. When you save a workspace, Excel notes the locations of all the workbooks that are currently open, as well as many of the workspace settings, so you can retrieve your files and settings in the same configuration they were in when you saved. Settings that are saved with workspaces include many display and calculation settings. The default file name suggested for a workspace file is Resume.xlw, but you can rename it.

Only slightly less basic than saving files is opening them. Click the File tab, and click Open to display the Open dialog box, shown in Figure 2-34.

Click one of the icons on the left side of the dialog box to display the corresponding files on the right side. The contents of the Documents folder is displayed when you first open the dialog box, unless you change the default file location. (Click the File tab, click Options, and select the Save category.) Important icons in the list include the following:

The Views button (to the right above the list window) provides different ways to display files in the dialog box. The Tools button (to the right, below the list window) displays a drop-down list that contains a single command, Map Network Drive, which lets you connect to a location on your network.

The drop-down list to the right of the File Name text box at the bottom of the Open dialog box determines which files are available for selection. The default option is All Excel Files, which displays file names whose extensions begin with xl. You can display specific file types or all files by clicking the arrow to the right of the text box.

Notice that headings appear at the top of the file list in the Open dialog box. When you click one of these headings, you sort the files in order, based on that heading. For example, if you click the Date Modified heading, you sort the files in date order. Click the same heading again to re-sort in reverse order. You can further refine your quest by using the hidden menus adjacent to each heading. When you rest the pointer on a heading, a downward-pointing arrow appears to the right of the heading; click it to display a menu of additional options pertinent to that heading, as shown in Figure 2-35.

Each heading has its own menu of options, some of which are based on the actual files contained in the current folder. For example, when you click the menu for the Type heading, you can select from the list of file types contained in the folder.

If you have files you need to work on every day, you can store them in a special folder called XLStart. Every time you start Excel, any files in the XLStart folder automatically open.

The XLStart folder is created when you install Excel and is located in the following place:

  • Windows XP C:\Documents and Settings\<your name>\Application Data\Microsoft\Excel\XLStart

  • Windows 7 or Vista C:\Users\<your name>\AppData\Roaming\Microsoft\Excel\XLStart

If you want to start Excel and simultaneously open files that are in a folder other than the XLStart folder, you can specify an alternate startup folder. Click the File tab, click Options, and select the Advanced category. In the At Startup, Open All Files In text box, under General options, type the full path of the folder. This feature is particularly useful if your computer is connected to a network and you want to open files from a shared folder.

Figure 2-34 shows the Open dialog box, where you can find the Open Options menu (click the arrow next to the Open button) containing the Open And Repair command. This command gives you a fighting chance at either repairing a corrupted file or extracting the data from it if it doesn’t respond to a repair attempt. When you select a file and click the Open And Repair command, the message box shown in Figure 2-36 opens.

Try the Repair button first, and if Excel still has no luck opening the file, try the Extract Data button, which displays the message box shown in Figure 2-37.

You’ll have to make a judgment call here—if you think your formulas will be OK after extraction, click Recover Formulas; otherwise, click Convert To Values. Recovering formulas will probably work unless the formulas include references to cells that were lost in corruption. Whatever you choose, the Extract Data feature pulls all the data from your workbook, including all worksheets and tabs, in the same order in which they appear in the original file. Unfortunately, the recovery process ignores all formatting, charts, and other objects—you can recover only the actual cell contents (the important stuff).

Note that unless the part of the file that became corrupted was the part storing passwords, you probably won’t be able to use this technique to retrieve data from a password-protected file.

Tip

INSIDE OUT Recover Data Using Links

You can try to recover data from a corrupted workbook by using another trick. It is essentially the same trick used by the Excel Open And Repair command, but it still might be worth a try if Open And Repair fails.

First, open two new workbooks. Select cell A1 in one of the workbooks, and then press Ctrl+C to copy. Activate the second workbook, and right-click cell A1. Click Paste Special, and then click the Paste Link button. Next, click the File tab and click Edit Links To Files on the Info screen (this command is in tiny type at the bottom of the shaded area on the right), click Change Source, and locate the corrupted workbook. Click OK, and then click Close to close the Edit Links dialog box.

If luck is with you, data from cell A1 in the lost workbook appears in cell A1, thanks to the linking formula. If it does, press F2 to activate Edit mode, and press F4 three times to change the absolute reference $A$1 to its relative form, A1. Finally, copy the formula down and across until you can see all the data you need to retrieve. Repeat for each worksheet in the workbook. You lose the formatting and formulas, of course, and zeros appear in every blank cell, but at least you can get at the important stuff. Although you can save this worksheet with linking formulas, you might consider converting all the formulas to their underlying values, just in case the original corrupted file has any further degradation. To do so, select all the cells containing the formulas you just created, click Ctrl+C to copy, right-click, click Paste Special, select Values, and then click OK.