Hi Boris
Based only on your question, without knowing any other information about the task, I'd say use the Range.Find.Execute method.
Word's "Find" functionality is able to find formatting, not just text. I recommend first experimenting in the Word UI (Ctrl+F, be sure to click the "More" button) to get a feel for how it works. Once you find the command combination that gives the result you want, record a macro to get the parameter values for the Execute method.
You'll find quite a few code samples for using Find in the forum, and in the Internet. Cindy Meister, VSTO/Word MVP- Marked As Answer byBoris Nikitin Friday, October 16, 2009 8:33 AM
-
|