Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading paragraph numbers in Word 97 VBA

Status
Not open for further replies.

beniez

IS-IT--Management
Mar 23, 2001
72
GB
I want to be able to read the current paragraph number of a selection in a VBA routine. The purpose is to create a kind of index listing, whereby certain formatting is found and the text and paragraph number are stuffed into a separate document.

I've been trying Range.ListFormat.ListLevelNumber, but that seems simply to return 1 for the first para in the range (even if that para is numbered 47 in the document).

It's driving me mad. Any suggestions?
 
Sorry folks, I just found it:
Range.ListFormat.ListValue is the answer.

Hope this learning experience does someone else some good too!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top