object replaceAll = Microsoft.Office.Interop.Word.WdReplace.wdReplaceAll;
object findContinue = Microsoft.Office.Interop.Word.WdFindWrap.wdFindContinue;
object findText = "";
object replaceText = "test";
object inline = "CodeIn";
Microsoft.Office.Interop.Word.Find wf = doc.Content.Find;
wf.ClearFormatting();
wf.Replacement.ClearFormatting();
wf.Text = "*";
wf.Execute(ref findText,ref vFalse, ref noData, ref vTrue, ref noData, ref noData, ref vTrue, ref findContinue,ref vTrue, ref replaceText, ref replaceAll, ref noData, ref noData, ref noData, ref noData);