Archive

Posts Tagged ‘Shortcuts’

How to Recover Lost Excel Passwords

August 26th, 2009 2 comments

Let me preface this article by saying that this will not help you recover lost data, or gain access to protected data that you otherwise wouldn’t have access to.  What it will do is allow you to unlock a password protected worksheet in Excel, so that you can edit it as necessary.  Simply put, if you don’t already have access to the worksheet, this macro will not help you.

Now that the disclaimer is out of the way, let’s figure out why people password protect worksheets to begin with.  By protecting a worksheet and the contents of locked cells, users can keep themselves or other users from:

  • accidentally (or intentionally) removing formulas, or other contents of locked cells
  • adding or deleting rows and columns
  • changing cell, column or row formats
  • sorting data
  • using AutoFilter or PivotTable reports
  • editing objects or scenarios

Protecting a worksheet will not keep users from

  • editing any unlocked cells in the worksheet
  • viewing all data in the worksheet, regardless of if it is in a locked cell or not

Being able to unlock a password protected worksheet is useful, when

  • you have forgotten the password on your own worksheet
  • a co-worker, or other user has password protected a worksheet that you now need to edit, and they are not available to unlock the sheet for you
  • you have a need to perform an analysis of the data in a password protected worksheet, but are unable to do so due to the locked cells
  • you would like to sort/filter the data in a password protected worksheet, or create a PivotTable report from the data

Since Microsoft Excel is not a “secure” program, it is very easy to unlock the password of a password protected worksheet.  This is because there are several different combinations of passwords that Excel will accept to unlock the worksheet.  For example, a worksheet with the password “treehouse”, can also be unlocked with the password “AAAABAABBBB/”.  The opposite is also true (i.e. protecting with the password “AAAABAABBBB/” can be unlocked with the password “treehouse”).  Go ahead; try locking a worksheet with the password treehouse, and use AAAABAABBBB/ to unlock it.

The macro code below will “unlock” one worksheet at a time, using the method used above.  It won’t provide you with the actual password someone typed in, but rather a random sequence of letters or symbols that will work to unlock the worksheet.


Sub PasswordRecovery()
'
'MACROS BY EXCELZOOM.COM
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If ActiveSheet.ProtectContents = False Then
MsgBox "One usable password is " & Chr(i) & Chr(j) & _
Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub

Categories: Macros Tags: , , ,

Excel 2007

February 15th, 2009 No comments

For a person who has used previous versions of Excel, Excel 2007 can be a little intimidating at first. For starters, there are none of the familiar menu options, and some of the keyboard shortcuts that have become second nature have changed. Don’t let this discourage you though. With a little guidance and familiarization, you’ll find that Excel 2007 is more powerful and easier to use than before.

Excel 2007 Navigation

  1. Office Button: This button contains most of the functions found in the File Menu from previous versions of Excel. Commands, such as New, Open, Save, Print and others can be found here.
  2. Quick Access Toolbar: The Quick Access Toolbar is fully customizable, and allows you to display commonly used commands. In the image above, there is Save, Undo, Redo, Print Preview and New Workbook.
  3. Ribbon: The Ribbon replaces the traditional menus found in previous versions of Excel. The standard ribbon tabs are Home, Insert, Page Layout, Formulas, Data, Review, and View. Excel will automatically add menus as necessary to allow you to work with the content of your worksheet. You’ll notice that there is also a Developer and an Add-Ins tab in the image above. This is because there are macros stored in the workbook, which are shown in the Developer tab, as well as several Add-Ins that are running.
  4. Help: The Help button provides one click access to be able to browse Excel’s help topics.
  5. Name Box: The Name Box isn’t different from previous versions of Excel, however it is one of the lesser known features found in Excel. This displays the cell reference when selecting a cell (the column and row cross section). You can also type a named range in here. To learn more about naming ranges, take a look at our article Tips – Naming Ranges.
  6. Insert Function: By clicking the Insert Function button, Excel will open the Insert Function dialogue box. Here you can search for functions by typing keywords in the search box, or by selecting a category from the drop down menu. The Insert Functions interface is the same as in previous versions of Excel.
  7. Formula Bar and Expand Formula Bar Button: The Formula Bar should look familiar to you if you have used Excel before. What’s different in Excel 2007 is the Expand Formula Bar Button on the right. When working with long formulas, this button increases the height of the formula bar, without covering over the data in the first few rows of your spreadsheet. It also enables you to scroll vertically through the formula with the scrolling buttons it displays after clicking the Expand Formula Bar Button.
  8. Right Click MiniBar: When right clicking a cell in Excel 2007, you’ll see a new MiniBar in addition to the usual shortcut menu, which displays commonly used editing features. This is makes editing easier, so you don’t have to keep clicking back to the Home tab on the Ribbon in order to format your worksheet.
  9. Right Click Shortcut Menu: The shortcut menu in Excel 2007 hasn’t changed much, but also displays with the MiniBar when right clicking.
  10. Vertical/Horizontal Split Box: The split boxes in Excel 2007 are not a new feature, but are not very well known. By clicking and dragging either the vertical or horizontal bars, you can split your worksheet into several scrollable panes, allowing you to view different areas of your worksheet at once. To learn more about the split box, take a look at our article Tips – Split a Worksheet Into Multiple Panes.
  11. Status Bar: The status bar shows information about Excel. In the image above it says “Ready”, however if you’re saving a file, it will display the status there. The AutoSave feature will also display a status in this location when it is saving your work. The status bar also displays the selected cell statistics, quick views bar and zoom level. The status bar is also customizable. Simply right click somewhere in the status bar to display the customization menu.
  12. Worksheet Tabs and Insert New Worksheet Button: The worksheet tabs should be a familiar sight from previous versions of Excel, but the Insert New Worksheet button is a new addition. You can now insert new worksheets with one click of the Insert New Worksheet button.
  13. Selected Cell Statistics: In previous versions of Excel, when highlighting several cells with numbers Excel would, by default, show the sum of those numbers here. In Excel 2007, it also displays the average and count of those cells in addition to the sum. For purposes of the illustration above, we’ve edited the image to display the selected cell statistics as if we were to highlight two cells, one with a 5 and the other with a 1. We did this so we could also illustrate the right click menu, that would have otherwise obscured the data in the selected cells.
  14. Quick Views: The Quick Views bar allows you to quickly switch between Normal, Page Layout and Page Break Preview views. While these page views aren’t new to Excel 2007, the easy access quick views bar is.
  15. Zoom Level: The Zoom Level bar replaces the zoom level drop down menu from previous versions of Excel. You can change the zoom by dragging the arrow left or right to a minimum zoom of 10% or a maximum zoom of 400%. Alternatively, you can click the + or – buttons to increase/decrease the zoom level by 10% with each click.
Categories: Tips Tags: , ,

Excel Shortcut Keys

February 4th, 2009 No comments


Below, you’ll find a fairly comprehensive list of default shortcut keys found on a standard English keyboard in Excel.

F1 Help Ctrl+F9 Minimize Workbook Ctrl+Up Arrow Move to Next Cell
With Data Above
F2 Edit Ctrl+F10 Restore Workbook Ctrl+Down Arrow Move to Next Cell With Data Below
F4 Repeat Action Ctrl+F11 New Macro Sheet Ctrl+Space Bar Select Column
F5 Open Goto Dialog Box Ctrl+F12 Open Ctrl+Tab Next Window
F6 Next Pane Ctrl+A Select All  Ctrl+BackSpace Goto Active Cell
F7 Spell Check Ctrl+B Bold Selection Alt+F1 Insert Chart in Current Sheet
F8 Extend Selection Mode Ctrl+C Copy Selection Alt+F2 Save As
F9 Calculate All Ctrl+D Fill Down Alt+F4 Quit Excel
F10 Activate Menu Ctrl+F Open Find Menu Alt+F6 Switch To VBA
F11 New Chart Ctrl+G Open Goto Dialog Box Alt+F8 Open Macro List
F12 Save As Ctrl+H Open Find/Replace
Menu
Alt+F11 Open VB Editor
= Formula Ctrl+I Italicize Selection Alt+D Open Data Menu
Insert Insert Mode Ctrl+K Insert 
Hyperlink
Alt+E Open Edit Menu
Delete Delete Active Cell’s Contents Ctrl+N New Workbook Alt+F Open File Menu
Home Go to the Beginning
of the Row
Ctrl+O Open Workbook Alt+H Open Help Menu
End Go to the End of theRow Ctrl+P Print Alt+I Open Insert Menu
Page Up Page Up Ctrl+R Fill Right Alt+O Open Format Menu
Page Down Page Down Ctrl+S Save Alt+T Open Tools Menu
Left Arrow Move Left Ctrl+U Underline Selection Alt+W Open Window Menu
Right Arrow Move Right Ctrl+V Paste Ctrl+Shift+F3 Create Names From Selection
Up Arrow Move Up Ctrl+W Close Workbook Ctrl+Shift+F6 Previous Workbook
Down Arrow Move Down Ctrl+X Cut Ctrl+Shift+F12 Print
Space Bar Space Ctrl+Y Redo Ctrl+Shift+A Formula Arguments
Tab Move Right Ctrl+Z Undo Ctrl+Shift+F Fomat Cells Font Tab
Shift+F1 What’s This Help Ctrl+` Toggle Formula View Ctrl+Shift+O Select Comments
Shift+F2 Edit Comment Ctrl+1 Open Format Cell Menu Ctrl+Shift+P Fomat Cells Font Tab
Shift+F3 Insert Function Ctrl+2 Bold Selection Ctrl+Shift+` Format Cells -
General Format
Shift+F4 Find Again (With Find Open) Ctrl+3 Italicize Selection Ctrl+Shift+1 Format Cells – Number Format
Shift+F5 Find Ctrl+4 Underline Selection Ctrl+Shift+2 Format Cells – Time
Format
Shift+F6 Previous Pane Ctrl+5 Strikethrough Selection Ctrl+Shift+3 Format Cells – Date Format
Shift+F8 Add To Selection Ctrl+8 Outline Ctrl+Shift+4 Format Cells -
Currency Format
Shift+F9 Calculate Worksheet Ctrl+9 Hide Selected Rows Ctrl+Shift+5 Format Cells – Percent Format
Shift+F10 Right Click Menu Ctrl+0 Hide Selected Columns Ctrl+Shift+6 Format Cells -
Exponent Format
Shift+F11 New Worksheet Ctrl+- Delete Selection Ctrl+Shift+7 Format Cells – Apply Border
Shift+F12 Save Ctrl+[ Go to Dependents Ctrl+Shift+8 Select Region
Shift+Left Arrow Select Left Ctrl+] All Dependents Ctrl+Shift+9 Unhide Rows
Shift+Right Arrow Select Right Ctrl+; Insert Date Ctrl+Shift+0 Unhide Columns
Shift+Up Arrow Select Up Ctrl+/ Select Array Ctrl+Shift+- Format Cells – Remove Border
Shift+Down Arrow Select Down Ctrl+ Select Differences Ctrl+Shift+= Open Insert Dialog
Box
Shift+Space Bar Select Row Ctrl+Insert Copy Ctrl+Shift+[ Direct Precedents
Shift+Tab Move Left Ctrl+Delete Delete To End Of Line Ctrl+Shift+] All Precedents
Ctrl+F3 Open Name Manager Ctrl+Home Start Of Worksheet Ctrl+Shift+; Insert Time
Ctrl+F4 Close Window Ctrl+End End Of Worksheet Ctrl+Shift+’ Copy Cell Value Above
Ctrl+F5 Restore Window Size Ctrl+Page Up Previous Worksheet Ctrl+Shift+/ Select Array
Ctrl+F6 Next Workbook Ctrl+Page Down Next Worksheet Ctrl+Shift+ Select Unequal Cells
Ctrl+F7 Move Window Ctrl+Left Arrow Move to Next Cell With Data to Left Ctrl+Shift+Space Bar Select All
Ctrl+F8 Resize Window Ctrl+Right Arrow Move to Next Cell
With Data to Right
Ctrl+Shift+Tab Previous Window
Categories: Tips Tags: ,