WebApr 11, 2024 · To bold special characters in one cell, you can use the following code to do that: Public Sub Test() ' Cell A1 in the first sheet contains the string "Greetings from here." ThisWorkbook.Worksheets(1).Cells(1, 1).Characters(11, 4).Font.Bold = True. End Sub . In this case, the word "from" is bolded. WebSep 12, 2024 · This example sets the font to bold for the range A1:A5 on Sheet1. Worksheets("Sheet1").Range("A1:A5").Font.Bold = True Support and feedback. Have …
Font.Bold property (Excel) Microsoft Learn
WebApr 3, 2013 · Re: Apply bold font format to specific part of text string Put your text in A1 and try this. Code Sub xz() Dim oMatches As Object, i As Long With CreateObject("VBScript.RegExp") .Global = True .IgnoreCase = True .Pattern = "[\w]{2}\-[\w]{3}\-[\d]{3}" Set oMatches = .Execute(Range("A1")) For i = 0 To oMatches.Count - 1 WebSep 12, 2024 · This example sets the font to bold for the range A1:A5 on Sheet1. Worksheets("Sheet1").Range("A1:A5").Font.Bold = True Support and feedback. Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide … my movies forum
excel - How to make some of the text in a cell bold?
WebJun 17, 2024 · The following examples will show you how to change the font to bold in Excel using VBA. 'In this Example I am changing the Range B4 Font to Bold Sub … WebSep 21, 2024 · As this does not need to be a function, it does not return anything and you cannot use it from the worksheet, we can make it a sub: Public Sub highlight_text(Search) Dim rng As Range Dim cell As Range … WebJan 15, 2015 · Cell Z1 = A1 and formatted the cell contents as bold; Created a text box, clicked [F2] to link it to Cell B1, selected "No Line" for the text box formatting, and ensured the font was set to "regular". Position the text box. The only tricky part was making sure the text box fit in the row and the text was aligned with the text below. old north state bsa