logo
search
Formatting Issues

How to Stop Excel from Copying Formatting When Inserting Rows or Columns

Muhammad TalhaMuhammad Talha Sep 25, 2026 869 views

Question details

The user wants to insert new rows or columns in Excel without the software automatically applying the formatting, data validation, and input messages from adjacent cells.

How to Stop Excel from Copying Formatting When Inserting Rows or Columns
Product
Excel for Microsoft 365
Device & OS
not provided
Scenario
Modifying an existing, highly formatted spreadsheet by adding new data rows or columns.
Observed behavior
Excel automatically inherits the surrounding row or column's formatting and validation rules when new cells are inserted, and there is no native default setting to disable this behavior.
Before you start

Inheriting formats is a default Excel behavior by design. If you plan to use a VBA macro workaround to bypass this, ensure your workbook is saved as a Macro-Enabled Workbook (.xlsm).

Solution 1Recommended

Use a VBA Macro to Insert Unformatted Rows

Since Excel lacks a built-in toggle for unformatted insertions, utilizing a simple VBA macro is the most efficient workaround to insert a clean row.

A macro can automate the process of inserting a row and immediately wiping all inherited formatting, data validation, and input messages from the new cells.

1
Open the VBA Editor

Press Alt + F11 on your keyboard to open the Microsoft Visual Basic for Applications window.

2
Insert a New Module

Click 'Insert' from the top menu, then select 'Module'. Paste a standard VBA script designed to insert a row and clear formats (e.g., Selection.EntireRow.Insert followed by Selection.ClearFormats and Selection.Validation.Delete).

3
Assign a Shortcut Key

Close the VBA editor, return to Excel, press Alt + F8 to open the Macro dialog, select your new macro, click 'Options', and assign a convenient shortcut key for future use.

Use a VBA Macro to Insert Unformatted Rows
Complete Clearing: Unlike the standard 'Clear Formats' button in the ribbon, a well-written macro will also strip hidden Data Validation rules and input messages.
Free Microsoft Office alternative

Try WPS Office for Seamless Spreadsheet Management

If you are frustrated by rigid default behaviors in Microsoft Excel, consider switching to WPS Office. It offers a lightweight, highly compatible alternative for your spreadsheet needs, providing a familiar interface without the bulk.

  1. 1. Download WPS Office: Visit the official WPS website to download and install the free suite.
  2. 2. Open WPS Spreadsheets: Launch the application and select Spreadsheets from the home dashboard.
  3. 3. Edit Seamlessly: Open your existing Excel files and enjoy a smooth, familiar editing experience.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Lightweight installation with incredibly fast loading times.Familiar user interface that requires zero learning curve.Free built-in PDF tools and advanced data processing capabilities.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel automatically format newly inserted rows?

Excel is designed to anticipate your needs by assuming that new rows inserted into a data set should match the existing visual structure, including cell colors, borders, fonts, and data validation rules.

Does the 'Clear Formats' tool remove Data Validation?

No, the standard 'Clear Formats' option in the Home tab removes visual styling like colors and fonts, but it leaves data validation rules and input messages intact. You must clear validation separately via the Data tab.

Can I permanently disable the 'Insert Options' paintbrush icon?

Yes. If you find the Insert Options button distracting, you can hide it by going to File > Options > Advanced, scrolling down to the 'Cut, copy, and paste' section, and unchecking 'Show Insert Options buttons'.

Will a VBA macro work in Excel online?

No, VBA macros are only supported in the desktop versions of Excel for Windows and Mac. They will not execute in Excel for the Web.