I have found the following VBA code: https://learn.microsoft.com/en-us/office/vba/api/word.find.found.
With Selection.Find
.ClearFormatting
.Font.Bold = True
.Execute FindText:="Hello", Format:=True, Forward:=True
If .Found = True Then
.Parent.Expand Unit:=wdParagraph
.Parent.Copy
End If
End With
However I am not sure how to write this in python.
Would anyone be able to help me convert the code to python?