HomeMicrosoft OfficeExcelHow to Remove Formatting for Range of Cells in Excel VBA?

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 article, you will learn about the SKEW.P function, the formula syntax and usage of the function in Microsoft...
In this article, you will learn about the SKEW function, the formula syntax and usage of the function in Microsoft...
In this article, you will learn about the RANK.EQ function, the formula syntax and usage of the function in Microsoft...
  • Excel
  • November 23, 2021