Jump between sections

K

Kerry Gregory

How do I jump between sections in a document to add text.

Eg in a standard letter, i just want to jump through to name, then halfway
throught the first paragraph, then to ending etc.

Is there something I can insert then just TAB through?
 
J

Jean-Guy Marcil

Kerry Gregory was telling us:
Kerry Gregory nous racontait que :
How do I jump between sections in a document to add text.

Eg in a standard letter, i just want to jump through to name, then
halfway throught the first paragraph, then to ending etc.

Is there something I can insert then just TAB through?

You can use fields, such as:

Do CTRL-F9 to insert curly braces {},
then, type this between the curly braces:

{MACROBUTTON nomacro My text}

When you are done, do ALT-F9 twice to hide the field codes.

Then, F11 will take you from field to field. Once you type over a field
after selecting it with F11, the field is gone, so F11 will not work
anymore.

Otherwise, you need a protected form so as to keep the fields, and then yes,
you can TAB around the form, even after having inserted the data, but at the
cost of losing Word functionality (Such as text formatting, spelling, etc.).

By the way, this is a VBA group.... Were you asking about how to navigate
using vba (macros)?
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
H

Helmut Weber

Hi Kerry,
I guess, You just want an easy way to navigate through your doc.
I think, that is what bookmarks are made for.
And as this is a group about programming word,
you will be able, I think, to assign a key like F11 to
a simple and small macro, like this:

Sub GotoNextBookmark()
Dim r As Range
Selection.Collapse
Selection.ExtendMode = False
Set r = Selection.Range
r.Start = 0
r.End = r.End + 1
On Error GoTo again
ActiveDocument.Range.Bookmarks(r.Bookmarks.Count + 1).Select
Exit Sub
again:
ActiveDocument.Bookmarks(1).Select
End Sub

Of course, there have to be bookmarks at first.

Greetings from Bavaria, Germany

Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/
 

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