Table of Contents
Using VBA (Visual Basic for Applications), you can easily make font bold in Microsoft Excel, Word, and other Office applications. This can be achieved by using the “Font.Bold” property and setting it to “True” for the desired text or range of cells. This will make the font appear thicker and more prominent, making it stand out from the rest of the text. Additionally, you can also use VBA to change the font size, style, and color, giving you full control over the appearance of your document or spreadsheet. By incorporating VBA, you can efficiently and effectively format your text and make it bold, enhancing the visual appeal of your work.
Make Font Bold Using VBA (With Example)
You can use the Font.Bold property in VBA to make font in specific cells in Excel bold.
For example, you could create the following macro to make the font in cell A1 of a sheet bold:
Sub MakeFontBold()
Range("A1").Font.Bold = TrueEnd Sub
Or you could create the following macro to make the font in each cell in the range A1:C1 bold:
Sub MakeFontBold()
Range("A1:C1").Font.Bold = TrueEnd SubThe following example shows how to make font bold in practice by using VBA.
Example: Make Font Bold Using VBA
Suppose we have the following dataset in Excel that contains information about basketball players on various teams:

We can create the following macro to make only the font in cell A1 bold:
Sub MakeFontBold()
Range("A1").Font.Bold = TrueEnd SubWhen we run this macro, we receive the following output:

Notice that the font in cell A1 has been changed to bold while all other cells have remained unchanged.
If we would instead like to make each of the cells in the range A1:C1 bold, then we can create the following macro:
Sub MakeFontBold()
Range("A1:C1").Font.Bold = TrueEnd SubWhen we run this macro, we receive the following output:

Notice that the font in each of the cells in the range A1:C1 is now bold.
Note: You can find the complete documentation for the VBA Font.Bold property here.
Cite this article
stats writer (2024). How can I make font bold using VBA?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-make-font-bold-using-vba/
stats writer. "How can I make font bold using VBA?." PSYCHOLOGICAL SCALES, 21 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-make-font-bold-using-vba/.
stats writer. "How can I make font bold using VBA?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-make-font-bold-using-vba/.
stats writer (2024) 'How can I make font bold using VBA?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-make-font-bold-using-vba/.
[1] stats writer, "How can I make font bold using VBA?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I make font bold using VBA?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
