Answer the question
In order to leave comments, you need to log in
How to programmatically set bold font in Word?
I form the text through bookmarks in worde using VBScript, are there any "tags" so that the Word converts sections of text in bold, by analogy with the html tagfunction main
main = "Значение"
end function
Answer the question
In order to leave comments, you need to log in
With ActiveDocument.Content.Find
.ClearFormatting
.Font.Bold = False
With .Replacement
.ClearFormatting
.Font.Bold = True
End With
.Execute FindText:="", ReplaceWith:="", _
Format:=True, Replace:= wdReplaceAll
End With
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question