A sintaxe do método Find.ExecuteFind.Execute
é:
bool Execute(
ref Object FindText,
ref Object MatchCase,
ref Object MatchWholeWord,
ref Object MatchWildcards,
ref Object MatchSoundsLike,
ref Object MatchAllWordForms,
ref Object Forward,
ref Object Wrap,
ref Object Format,
ref Object ReplaceWith,
ref Object Replace,
ref Object MatchKashida,
ref Object MatchDiacritics,
ref Object MatchAlefHamza,
ref Object MatchControl
)
No parâmetro replace
, especifique a constante wdReplaceAll
:
object replace = WdReplace.wdReplaceAll;
//...
oRng.Find.Execute( ref FindText , ref missing,ref MatchWholeWord ,
ref missing,ref missing,ref missing,ref Forward,
ref missing,ref missing,ref ReplaceWith ,ref replace,
ref missing,ref missing,ref missing,ref missing);