Hi All
Quick note: I had a search and couldn't find much (pretty rare on this site) and also I wasn't sure which topic this fell under so please move if needed, sorry if so.
Anyway, Question:
I use a form to move alot of data from a record into a word template using a series of strings put together automatically then moved into bookmarks.
Everything is all fine, however I am now trying to format two lines(if conditions are right) to be bold.
from searching i have:
but honestly have no idea how to go about it, ie selecting the bm then finding the line then setting format to = bold.
Thanks for any information or direction
Quick note: I had a search and couldn't find much (pretty rare on this site) and also I wasn't sure which topic this fell under so please move if needed, sorry if so.
Anyway, Question:
I use a form to move alot of data from a record into a word template using a series of strings put together automatically then moved into bookmarks.
Everything is all fine, however I am now trying to format two lines(if conditions are right) to be bold.
from searching i have:
Code:
Set r = doc.Range
r.Start = doc.Bookmarks("PartsBM").Range.Start
With r.Find
.Text = "Option 1 - Heater inserts only"
.ClearFormatting
.Execute warp:=wdFindStop, Replace:=wdReplaceAll
End With
Selection.Find.Execute
Selection.Font.Bold = True
but honestly have no idea how to go about it, ie selecting the bm then finding the line then setting format to = bold.
Thanks for any information or direction
Last edited: