Written by Allen Wyatt (last updated January 18, 2020)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and 2021
Rob has a number of worksheets that are used to score assessments. The first worksheet has cells for name, date, etc., then several columns to enter the multiple-choice responses. The sheet is protected, so only input cells can be changed. When the user finishes the last cell in a column, the focus will jump to the next unprotected cell, which may be the first cell in the next column, or it might be the "date" cell. Rob wonders how he can control the focus so that when the value is entered into the last (bottom) cell in a column, it will then move to a cell that he specifies.
There is no built-in way to do this in Excel, as the program determines its own order of choosing which cell is next selected. You can modify which cell is selected next when you press Enter in a worksheet, but you cannot modify what happens when you press Tab in a protected worksheet. By default, cells are selected left to right and then top to bottom in the worksheet.
If you want to modify what happens when the Tab key is pressed, then you'll need to resort to using a macro to control the selection order. The following macro is an example; it moves to cell D5 after entering something into cell C10 and to E5 after entering something in cell D10:
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$C$10" Then Range("D5").Select If Target.Address = "$D$10" Then Range("E5").Select End Sub
The problem with using a VBA solution like this is that it can make your spreadsheet—particularly if it is a large one—a bit more sluggish. By their nature, macros also mean that the Undo feature is disabled.
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10314) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and 2021. You can find a version of this tip for the older menu interface of Excel here: Controlling Entry Order on Unprotected Cells.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 365 applications with VBA programming. Written in clear terms and understandable language, the book includes systematic tutorials and contains both intermediate and advanced content for experienced VB developers. Designed to be comprehensive, the book addresses not just one Office application, but the entire Office suite. Check out Mastering VBA for Microsoft Office 365 today!
Need to protect a lot of worksheets? Rather than protect the sheets individually, you'll appreciate the macros discussed ...
Discover MoreIf you share a workbook with others in your office, you will probably want to make sure that some of the worksheets don't ...
Discover MoreYou've protected and saved your worksheet with explicit instructions that you be allowed to insert and delete rows. But ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2025 Sharon Parq Associates, Inc.
Comments