ben_chalmers
New Member
Hello,
I need to make a specific phrase in MS Work bold.
My initial thoughts were to use the following actions from the MS Word VBO:
This, however, neither replaces the phrase, or makes it bold.
I have built an action within the Word VBO that successfully replaces the phrase, but instead of making just that phrase bold, it makes the whole document bold.
See below inputs and code:
View attachment 1557920202964.png
Any help on this would be much appreciated.
Thanks in advance.
I need to make a specific phrase in MS Work bold.
My initial thoughts were to use the following actions from the MS Word VBO:
- Find Text
- Replace Highlighted Text, and set the 'New Bold' parameter to True (see below).
This, however, neither replaces the phrase, or makes it bold.
I have built an action within the Word VBO that successfully replaces the phrase, but instead of making just that phrase bold, it makes the whole document bold.
See below inputs and code:
View attachment 1557920202964.png
Code:
Dim d As Object = GetDocument(handle,document_name)
Dim r As Object = d.Range
d.Content.Find.Execute(FindText:=current_text, ReplaceWith:=new_text)
r.Bold=new_bold
Any help on this would be much appreciated.
Thanks in advance.