I am trying to execute a Selection.Find in MS Word and then return the exact location relative to the beginning of the document.
Let's say I have two instances of the word "computer" in my text, and two instances of the term "computing". I want to find the first instance of any of those, and highlight it or somehow mark it. I do NOT want to find other forms of the word, such as "computation".
My approach is to do a CTRL Home and then find the first instance of "computer", and then CTRL Home again and find the first instance of "computing". Let's say it finds both. How do I know which one is closer to the beginning of the document?
The status bar in Word tells me which page I'm in, which section, how many vertical inches from the top, and which line and column I'm in. The key may be those Ln and Col values. But how can I access those programmatically?
Or can anyone think of an alternate solution?
Let's say I have two instances of the word "computer" in my text, and two instances of the term "computing". I want to find the first instance of any of those, and highlight it or somehow mark it. I do NOT want to find other forms of the word, such as "computation".
My approach is to do a CTRL Home and then find the first instance of "computer", and then CTRL Home again and find the first instance of "computing". Let's say it finds both. How do I know which one is closer to the beginning of the document?
The status bar in Word tells me which page I'm in, which section, how many vertical inches from the top, and which line and column I'm in. The key may be those Ln and Col values. But how can I access those programmatically?
Or can anyone think of an alternate solution?