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 / January 2005

Tip: Looking for answers? Try searching our database.

Jump between sections

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kerry Gregory - 13 Jan 2005 14:07 GMT
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?
Jean-Guy Marcil - 13 Jan 2005 15:04 GMT
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)?
Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Helmut Weber - 13 Jan 2005 15:21 GMT
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/
 
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.