Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //boldrange_1 for "green", boldrange_2 for "inch".
- Word.Range boldrange_1 = table.Cell(1, 2).Range;//Assign the whole cell range to boldrange, then adjust it with SetRange method.
- boldrange_1.SetRange(table.Cell(1, 2).Range.Start, table.Cell(1, 2).Range.Words[1].End);
- boldrange_1.Bold= 1;
- Word.Range boldrange_2 = table.Cell(2, 2).Range;
- boldrange_2.SetRange(table.Cell(2, 2).Range.Words[4].End, table.Cell(2, 2).Range.Words[5].End);
- boldrange_2.Font.Bold = 1;
- //I've found that boldrange_2.Font.Bold = 1; and boldrange_2.Bold = 1; have the same effect.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement