|
-
Mar 27th, 2007, 10:35 AM
#1
Thread Starter
New Member
Finding the line number in Word
Quick question - how do I find the line number a particular word is on?
Code:
For iCount = 1 To ThisDocument.Content.Words.Count
sWord = Trim(ThisDocument.Content.Words.Item(iCount))
if sWord = <criteria> then
iLineNumber = ?????
end if
Next iCount
Thanks in advance
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|