access vba - Make middle of Word sentence BOLD only -


i have access 2010 database within need create letters (word docs). parts of letter in bold, when try set makes preceding text on same line bold well. don't think find work in situation (i've found plenty of examples of formatting using find!), data changes; might possible, fiddly determining starts , ends. can, however, capture data in distinct blocks process have tried this...

with oparagraph .range.text = scontent .range.insertafter (spreviewletter) .range.insertafter (sectext1) .range.collapse (wdcollapseend) end with oparagraph .range.insertafter (sectext2) .range.bold = true end with oparagraph .range.insertafter (sectext3) end with

nothing seems working correctly me i'm hoping quite simple in reality. in snippet above, i'd sectext2 bold, not sectext1 or sectext3. help!

ok, maybe bit of bodge or better programming, i'm afraid don't know gave me needed...

oparagraph.range.select selection.typetext (scontent) selection.typetext (spreviewletter) selection.typetext (sectext1) selection.font.bold = true selection.typetext (sectext2) selection.font.bold = false selection.typetext (sectext3)


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -