Thanks, Blakeh1, but as I said, I have a workaround. More is always better, though. Unfortunately, I'm trying to locate something that doesn't require a loop (document is rather large, picture how many pages x paragraphs, per usage).
What I'd really like is some undocumented feature (Hell, hand me a bug that returns the wrong information or something. :)) that basically ejects the current paragraph number back to you, or a non-looping method to *quickly* find paragraph #8983 down on page 385, if that's where I'm forced to end up.
Although, at least now I have a solution that's not going to mess with other formatting and the need for bookmarks.
-Craig
Main Topics
Browse All Topics





by: blakeh1Posted on 2001-07-16 at 11:43:41ID: 6287091
Sub GetParaNum()
Dim rSelection As Range
Dim r As Range
Dim p As Paragraph
Dim i As Long
Set rSelection = Selection.Range
i = 1
For Each p In ActiveDocument.Paragraphs
Set r = p.Range
If rSelection.InRange(r) Then
MsgBox "Selection in paragraph " & i
End If
i = i + 1
Next
End Sub