K
krini_pop
I need to find underlined text in a table cell. When I find it, I need
to select the line it is on and change the font of the whole line to
bold. Here is the code snippet I have so far.
wd_tbl.Cell(9, 7).Select
Selection.HomeKey wdStory
Selection.Find.ClearFormatting
With Selection.Find
.Font.Underline = wdUnderlineSingle
Do While .Execute(Forward:=True, Wrap:=wdFindStop,
Format:=True) = True
Set cell_range = Selection.Bookmarks("\line").Range
cell_range.Font.Bold *****fails on this statement, invalid
use of property*****
Loop
End With
Please help.
Thanks,
Trina
to select the line it is on and change the font of the whole line to
bold. Here is the code snippet I have so far.
wd_tbl.Cell(9, 7).Select
Selection.HomeKey wdStory
Selection.Find.ClearFormatting
With Selection.Find
.Font.Underline = wdUnderlineSingle
Do While .Execute(Forward:=True, Wrap:=wdFindStop,
Format:=True) = True
Set cell_range = Selection.Bookmarks("\line").Range
cell_range.Font.Bold *****fails on this statement, invalid
use of property*****
Loop
End With
Please help.
Thanks,
Trina