Go to specific line in numbered list?

E

Enjoju

Hey all,

I have a question that will hopefully save me a lot of time! I'm working on
my dissertation, and my data (transcription of speech) is formatted in a very
long numbered list. The thing is that there are often more than one actual
lines per list item, like so:
1) ____________________________________
_______________________________________
____________
2) ____________________________________
______________________________________
etc.

What I have been trying to figure out is a way to jump to a specific *list
number*, rather than actual line number. I have a list of line numbers where
I want to put bookmarks, and it would be great to able to jump to that list
item rather than scroll down. Like for instance, say I want to insert a
bookmark in list item 2), I could use the 'goto' command to go to line 2, but
that would actually be 2 lines above it. The number of lines per each list
item varies, so imagine trying to figure out what the actual line number is
50-100 times per document!

From what I've seen playing with the Goto command though (CTRL-G), although
you can go to a specific line, I don't see any way to go to a list #. Is
there any way of using find/replace or goto or something else to go to list
item numbers rather than line numbers?
 
P

Peter T. Daniels

Is the numbering of the list automatic, or is it typed in front of
each item? Are the lines under each number actual lines, created with
returns or line breaks, or are they simply wrapped paragraphs?

Your version of Word is also relevant to paragraph numbering.
 
G

Greg Maxey

Assuming you used list numbering to create the list and the list is
the first list in the document you could use:

Sub ScratchMaco()
Dim i As Long
i = InputBox("Enter list number you want to goto")
ActiveDocument.Lists(1).ListParagraphs(i).Range.Select
Selection.Collapse wdCollapseStart
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top