Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2007

Tip: Looking for answers? Try searching our database.

Determining Paragraph Index

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JonWayn - 19 Jun 2007 07:03 GMT
If I have and object variable set to some range in a document, how can I find
out the paragraph number of some arbitrary paragraph in that range?

IOW, each paragraph is numbered starting from 1 to the number of paragraphs
in the document. If I use the Find object's Execute method to return a range
close to the bottom of the document, how do I find out the paragraph number
relative to the document as opposed to the range object?
Stefan Blom - 19 Jun 2007 09:31 GMT
See if this article helps:
http://word.mvps.org/faqs/macrosvba/GetIndexNoOfPara.htm.

Signature

Stefan Blom
Microsoft Word MVP

> If I have and object variable set to some range in a document, how can I find
> out the paragraph number of some arbitrary paragraph in that range?
[quoted text clipped - 3 lines]
> close to the bottom of the document, how do I find out the paragraph number
> relative to the document as opposed to the range object?
JonWayn - 19 Jun 2007 10:30 GMT
Thanks, very good.

On Microsoft's part though, I find it very awkward.

> See if this article helps:
> http://word.mvps.org/faqs/macrosvba/GetIndexNoOfPara.htm.
[quoted text clipped - 10 lines]
> number
> > relative to the document as opposed to the range object?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.