I am wanting to replace all the substitue code for paragraph markers (^13) with the normal paragraph marker code ^p in a Microsft Word document, using C# and Interop.
I am have been using the Microsoft.Office.Interop.Word.Selection.Find.Execute() method.
For example..
.Application.ActiveWindow.Selection.Find.Execute(
ref findText,
ref matchCase,
ref matchWholeWord,
ref matchWildcards,
ref matchSoundsLike,
ref matchAllWordForms,
ref findForward,
ref findWrap,
ref findFormat,
ref replaceText,
ref replaceAll,
ref missing,
ref missing,
ref missing,
ref missing);
- findText = "^13"
- matchCase = true
- matchWholeWord = true
- matchWildcards = true
- matchSoundsLike = false
- matchAllWordForms = false
- findForward = true
- findWrap = WdFindWrap.wdFindContinue
- findFormat = false
- replaceText = "^p"
- replaceAll = WdReplace.wdReplaceAll
Using the code above, the ^13 markers are not being replaced by ^p markers.
Does anyone know how I can rectify this?