Quote:
Originally Posted by Tommes93
when the do while loop starts, it wont do it for only one cell or only the table. it goes through the whole document and changes every bold word.
|
That's because I didn't provide any code to limit the range. Without knowing more about your document, which you seem reluctant to provide, I can't do that; you'll have to do it yourself, using an InRange test, along the lines of:
Code:
Do While .Find.Found
If .InRange(some predefined range) Then
' do stuff here
Else: Exit Do
End If
.Collapse wdCollapseEnd
.Find.Execute
Loop