M
Mark Wilson
In word 2007 the Find command has options "Ignore punctuation characters" and
"Ignore white-space characters". I'd like to be able to use the Word Object
Model to search a Range in a document for a text string and ignore any white
space characters. However, I can't seem to find any parameters for the
Execute method that will enable this option. How can I accomplish this
programmatically?
I can paste my own text into the document, but occasionally Word reformats
the text changing some spaces to non-breaking spaces or putting a space
before a CR/LF at the end of a line. I need to search for the text inserted
and remove it, but the Find command fails because Word has modified the
inserted text.
"Ignore white-space characters". I'd like to be able to use the Word Object
Model to search a Range in a document for a text string and ignore any white
space characters. However, I can't seem to find any parameters for the
Execute method that will enable this option. How can I accomplish this
programmatically?
I can paste my own text into the document, but occasionally Word reformats
the text changing some spaces to non-breaking spaces or putting a space
before a CR/LF at the end of a line. I need to search for the text inserted
and remove it, but the Find command fails because Word has modified the
inserted text.