Share via

Excel sometimes hangs when inserting or deleting lines to the same file

Gregg Van Volkenburgh 0 Reputation points
2026-03-18T14:03:28.14+00:00

Excel sometimes hangs when inserting or deleting lines to the same file

Microsoft 365 and Office | Excel | For home | Windows

2 answers

Sort by: Most helpful
  1. Manoel Barros 17,830 Reputation points Independent Advisor
    2026-03-18T16:01:20.2+00:00

    Hi! Does this problem occur only in one spreadsheet or in all spreadsheets?

    Are your spreadsheets stored on OneDrive, a third-party cloud service, or your HDD/SSD?

    Try creating a new spreadsheet and see if the problem occurs.

    You can try an online repair if the problem occurs in all spreadsheets.

    1. Open Windows Settings (Windows + I) > Apps > Installed Apps.
    2. Search for "Microsoft 365" or "Microsoft Office <Year> (2019, 2021)" > Click on the 3 Dots (●●●) > Change > Online Repair > Repair.
    3. When the repair is complete, restart your computer.

  2. Q&A Assist
    2026-03-18T14:03:47.28+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Use targeted troubleshooting to identify whether the hanging is caused by the workbook content, add-ins, or the environment.

    1. Install the latest updates
    • Make sure Windows Update and Microsoft 365/Office are fully updated. Out-of-date components can cause hanging and freezing when editing workbooks. Follow the steps in "Update Microsoft 365 and your computer" to install all important and recommended updates.
    1. Check if Excel is busy with another process
    • When the hang occurs, look at the Excel status bar (bottom of the window). If it shows that Excel is processing (for example, calculating or opening another file), wait for that task to complete before inserting or deleting lines again.
    1. Investigate the workbook’s contents Hangs during row insert/delete are often file-specific. In the problematic workbook, check for:
    • Formulas that reference entire columns (for example, =SUM(A:A) across many sheets).
    • Array formulas whose arguments have uneven ranges.
    • Hundreds or thousands of hidden shapes/objects or objects with zero height/width.
    • Excessive styles created by repeated copy/paste between workbooks.
    • Excessive or invalid defined names. If any of these exist, simplify the workbook (reduce full-column references, remove unused objects/styles/names) and test again.
    1. Test in Safe Mode to rule out add-ins
    • Run Excel in Safe Mode so it bypasses most add-ins and custom startup settings. If inserting/deleting lines works normally in Safe Mode, disable or remove problematic Excel or COM add-ins in a normal session.
    1. Check antivirus interaction
    • Ensure antivirus software is up to date.
    • If the antivirus integrates with Excel (for example, via an add-in), temporarily disable that Excel integration or the Excel-specific scanning feature and test again.
      • Important: Changing antivirus settings can make the PC more vulnerable. Only adjust these settings if comfortable with the risk, and consider consulting the antivirus vendor for guidance.
    1. Check environmental factors If the issue persists, test the same file under “cleaner” conditions:
    • File location: Copy the workbook to a local drive (e.g., Desktop or Documents) and work from there instead of a network share, SharePoint, redirected folders, Remote Desktop/Citrix, or other network/virtualized locations.
    • Memory: Large or complex workbooks with many formats and shapes require sufficient RAM. Verify the device meets Office system requirements.
    • Printers and video drivers: Excel is printer-intensive. Switch the default printer to something like “Microsoft XPS Document Writer” and test again. Also ensure video drivers are current.
    1. If still hanging
    • If hangs continue after these steps, the cause is likely a combination of workbook complexity and environment. At that point, contact Microsoft Support for guided troubleshooting, providing details about when the hang occurs (exact action, file location, add-ins in use, and antivirus).

    References:

    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.