person holding blue and clear ballpoint pen

How to Remove Formatting for Range of Cells in Excel VBA?

In this post, you’ll learn how you can use ClearFormats property to remove formatting for all cells or range of cells programmatically in your Excel spreadsheet using Excel VBA.

How to Remove Formatting for Range of Cells in Excel VBA?

You can clear the formatting for range of cells by using the range object and calling the clearformats property as shown below.

Range("a1:a10").clearformats

This will clear the formatting for all the cells between a1 to a10.

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this post, you’ll learn how to Find Blank cells in excel so that you can remove or delete the blank cells form...
In this article, you’ll learn what is a Gauge Chart in Microsoft Excel. Also, you will learn how to add...
Microsoft Excel provides a shortcut for the users to move columns in excel using two different ways – using Shift...