Editing in cell - Disable "Home" key closes cell when text first entered

Andrew Cecka 0 Reputation points
2025-12-11T17:14:39.0366667+00:00

This has been the default behavior forever, but my muscle memory from Word still has me struggling in Excel.

I frequently use the Home key to move to the beginning of a line. In Word, it always performs that behavior the same.

In Excel, if text if entered into a blank cell in editing mode, when Home is pressed, it closes the cell and moves to the first column. Upon re-entering editing mode in the cell with double-click or F2, pressing the Home key takes the cursor to the beginning of the text in the cell.

Is there a way to ONLY have Excel perform the second behavior with a Home key press, always taking me to the beginning of the cell contents in editing mode and never closing the cell and moving to the first column?

I am frequently transferring bulleted lists from Word to Excel spreadsheets (where they make a lot more sense) but the copy/paste includes the bullet (even when pasting without formatting) leaving me the additional task of deleting the bullet from Excel. I end up pressing Home every time due to muscle memory and jump into the first cell in the row, causing me to have to navigate back to the cell.

Is there a way to make the Home key never close the cell and only close the cell with Enter/Tab?

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Hendrix-C 8,560 Reputation points Microsoft External Staff Moderator
    2025-12-11T18:54:34.22+00:00

    Hi @Andrew Cecka,

    Thank you for posting your question in the Microsoft Q&A forum.

    I'm sincerely sorry for any inconvenience and troubles this situation may have caused you.

    According to your concern, unfortunately Excel does not have a built-in option to change the Home key behavior globally. However, you can achieve that by using this VBA setup:

    • In the Excel file you want to disable "Home" key close cell, press Alt + F11 to open VBA editor.
    • Double click on This Workbook and add the below script into it:
    Option Explicit
     
    Private Sub Workbook_Open()
        Application.OnKey "{HOME}", "HomeToEditStart"
    End Sub
     
    Private Sub Workbook_Activate()
        Application.OnKey "{HOME}", "HomeToEditStart"
    End Sub
     
    Private Sub Workbook_BeforeClose(ByVal Cancel As Boolean)
        Application.OnKey "{HOME}"
    End
    

    User's image

    • Then press Insert > Module and add the below script into it:
    Option Explicit
     
    Public Sub HomeToEditStart()
        Application.SendKeys "{F2}{HOME}", True
    End Sub
    Public Sub SetHomeRemap()
        Application.OnKey "{HOME}", "HomeToEditStart"
    End Sub
    Public Sub ClearHomeRemap()
        Application.OnKey "{HOME}"
    End Sub
    

    User's image

    • After that, close the VBA editor.
    • In your worksheet, press Alt + F8 > select the SetHomeRemap and press Run. Then test if the Home key works as you expect.

    Hope this information proves helpful. You can try this formula and let me know if it works for you. If not, we can work together to find a solution.

    Thank you for your understanding and cooperation. If you have any questions or need further assistance, please feel free to share them in the comments so I can continue to support you.

    I'm looking forward to your reply.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".      

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Q&A Assist
    2025-12-11T17:14:48.0866667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    In Excel, the behavior of the Home key is designed to move the focus to the first cell of the row when you are in editing mode and have just entered text in a blank cell. Unfortunately, there is no built-in option to change this behavior so that the Home key only moves the cursor to the beginning of the text in the cell without closing it.

    The Home key's functionality in Excel differs from that in Word, where it consistently moves the cursor to the beginning of the line. In Excel, you can use F2 or double-clicking the cell to enter edit mode, and then the Home key will behave as expected by moving the cursor to the start of the text.

    To avoid the issue of accidentally closing the cell when hitting Home, you might consider being cautious with your key presses or using other methods to navigate within the cell, such as using the arrow keys or Ctrl + Arrow keys for word navigation. Unfortunately, there is no way to customize the Home key behavior in Excel to prevent it from closing the cell when text is first entered.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.