S
Sita
Hi,
We are having an issue while processing endnotes/footnotes in a word
document to remove any extra spaces (trailing) at the end of each endnote /
footnote.
We are using following piece of code to replace trailing spaces in the
endnote. Although there are no trailing spaces in the endnote,
allText.Find.Execute is returning true and its not coming out of the while
loop for the end note processing.
Also, even if i open the word document search for " ^p" in endnotes and try
to replace, it does not let me do that.
Const wdReplaceAll = 2
Const wdFindContinue = 1
For Each en In objDoc.EndNotes
allText = en.Range
If allText.Find.Execute (" ^p", False, False, False, False, False, True,
wdFindContinue, False, "^p", wdReplaceAll) = True Then
isReturn = True
End If
Really appreciate your help.
Thanks,
Sita
We are having an issue while processing endnotes/footnotes in a word
document to remove any extra spaces (trailing) at the end of each endnote /
footnote.
We are using following piece of code to replace trailing spaces in the
endnote. Although there are no trailing spaces in the endnote,
allText.Find.Execute is returning true and its not coming out of the while
loop for the end note processing.
Also, even if i open the word document search for " ^p" in endnotes and try
to replace, it does not let me do that.
Const wdReplaceAll = 2
Const wdFindContinue = 1
For Each en In objDoc.EndNotes
allText = en.Range
If allText.Find.Execute (" ^p", False, False, False, False, False, True,
wdFindContinue, False, "^p", wdReplaceAll) = True Then
isReturn = True
End If
Really appreciate your help.
Thanks,
Sita