Excel hacks tips & tools for streamlining your spreadsheets o'reilly 2007

Page 107

HACK

#34

Add More Levels of Undo to Excel for Windows

Note the use of the *. This repeats the next character in the format to fill the column width, meaning that all the Low, Average, or High text will be forced to the right, while the number will be forced to the left. H A C K

#34

Add More Levels of Undo to Excel for Windows

Hack #34

We all are familiar with Excel’s fabulous Undo feature, which enables a user to undo his mistakes. Unfortunately, the default level for this is a mere 16 changes. With the hack in this section, you can change the registry so that you can undo up to 100 mistakes.

When you use Excel’s Undo feature, and you reach undo number 16, the first undo is replaced by the 17th, and so on. Also, as soon as you save your workbook, the Undo Stack is wiped out, and the Undo History is lost. This is because when you press Save, you’re actually telling Excel that you are happy with the changes you made, so it decides for you that your Undo History is no longer required. You might have discovered that at times having only your last 16 changes retained in the Undo Stack is not enough. Instead of living with this, you can change this by editing the registry, something that works only in Windows. To do this, begin by quitting Excel completely. Select Start ➝ Run, and in the Open box type Regedit.exe. Click OK. When Regedit starts, expand the folder for HKEY_CURRENT_USER. Then expand the Software folder underneath it, then the Microsoft folder, the Office folder, and the 10.0 folder. (This last folder varies for different versions. 10.0 is for Excel 2002.) Expand the Excel folder, and finally, open the Options folder. Select Edit ➝ New ➝ DWORD Value, enter the word UndoHistory, and press Enter. Double-click the UndoHistory you just created, and enter a value greater than 16 and less than 100. Hopefully, 100 undos will be enough for even the most demanding users, though the issue with Save clearing the Undo Stack persists. H A C K

#35

Create Custom Lists

Hack #35

By adding a custom list to Excel, you can type the first item in the list, drag it down using the fill handle, and watch the list fill automatically.

One of Excel’s most popular time-saving features is its ability to automatically increment not only numbers, but certain text as well. Excel has a couple of built-in lists, such as days of the week and months of the year. Currently when you use the fill handle, you type the first item, then use the fill handle to fill cells with the next item in the list, and so forth. You can easily create your own custom list for commonly used items.

84

|

Chapter 2, Hacking Excel’s Built-in Features


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.