This is my Code it works but I have a problem at the third part when I try to change the word 'No' color to red it changes any word that includes 'No' for example 'Not Isolated' was Effected by this and its color was changed
how can i specify that i want only the word 'No' to be red?
object findStr = 'Not Applicable';
object findStr2 = 'N/A';
object findStr3 = 'No';
while (fileOpen.Selection.Find.Execute(ref findStr))
{
fileOpen.Selection.Font.ColorIndex = Microsoft.Office.Interop.Word.WdColorIndex.wdRed;
}
fileOpen.Selection.Start = 0;
while (fileOpen.Selection.Find.Execute(ref findStr2))
{
fileOpen.Selection.Font.ColorIndex = Microsoft.Office.Interop.Word.WdColorIndex.wdRed;
}
fileOpen.Selection.Start = 0;
while (fileOpen.Selection.Find.Execute(ref findStr3))
{
fileOpen.Selection.Font.ColorIndex = Microsoft.Office.Interop.Word.WdColorIndex.wdRed;
}