How to Make Cell Text Bold in Excel VBA?

In this post, you’ll learn how to format a cell text and make the cell text bold in Excel VBA.

How to Make Cell Text Bold in Excel VBA?

To Make Cell Text Bold in, you can use the .Bold command.

To run the VBA code,

  • Under the Developer tab, Click on the Visual basics option.
  • In the new tab, under the insert option click the module
  • Enter the code and run it.

Bold Text With VBA

To make the text bold using the range method

Code:

Range("A1").Font.Bold = True
How to Make Cell Text Bold in Excel VBA?

By cell method

Code:

Cells(2, 3).Font.Bold = True

Clear Bold Text

To clear bold text with VBA

Code:

Range("a1").Font.Bold = False
How to Make Cell Text Bold in Excel VBA?

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...