D
David Thielen
In Word 2003, the following code - only if the selection is in the header,
generates an ApplicationEvents3_Event.DocumentChange event.
Range range = applicationObject.Selection.Range.Duplicate;
range.Start = 0;
range.End = 2;
range.Find.ClearFormatting();
range.Find.Forward = forward;
range.Find.Text = text;
range.Find.Wrap = WdFindWrap.wdFindStop;
object missingValue = Type.Missing;
range.Find.Execute(ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue);
Any idea why it does this and how to stop it? This occurs only if the
selection is in the header.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm
generates an ApplicationEvents3_Event.DocumentChange event.
Range range = applicationObject.Selection.Range.Duplicate;
range.Start = 0;
range.End = 2;
range.Find.ClearFormatting();
range.Find.Forward = forward;
range.Find.Text = text;
range.Find.Wrap = WdFindWrap.wdFindStop;
object missingValue = Type.Missing;
range.Find.Execute(ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue, ref missingValue, ref missingValue,
ref missingValue);
Any idea why it does this and how to stop it? This occurs only if the
selection is in the header.
--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com
Cubicle Wars - http://www.windwardreports.com/film.htm