enter in a part of a word document

E

Esgrimidor

This is my first post. Best Regards everybody.


a VB script for enter in word to a part of the document

(a prefixed page, a mark, a table, a jpg, a comment ? , the firs
occurrence of a character string, a epigraph....... )

I would like enter in a word document looking for a text string an
position the cursor in the string.
I will know the existence of this chain always, so any other mark o
signal would be enough.
All I need is enter in a certain part of a document identifie
previously.

Thanksxx
 
D

Doug Robbins - Word MVP

Why not use Edit>Find?

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
G

Graham Mayor

Please do not post the same questions in multiple groups

Dim sMark As String
sMark = InputBox("Term to find")
With Selection
.HomeKey wdStory
Do While .Find.Execute(sMark) = True
.Range.Characters(1).Select
Exit Do
Loop
End With

will select the first character of the requested term

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
E

Esgrimidor

I'll try and comment the results.

Thanksxxx and excuse me for multiple posting

Edited : I have seen The TOC . Another purpose may be go to a part o
the TOC in the documen

Thankss
 
E

Esgrimidor

In a bat with the line :

"M:\Archivos de programa\Microsoft Office\Office10\WINWORD.EXE" /t
"Y:\GABINETE\PROYECTOS\125.09\125.09.Proyecto.doc" /mmacro3

mmacro3 is a macro to go to a bookmark in the desired and expressed
word document.

This bat may be linked from an excel cell or other possible hyperlinks.


I would like to know how are the methods or systems to go anywhere
inside a word document : part of the TOC, epigraph, etc.

Can you indicate me a good link to see the scripts tha make possible to
find and go everywhere in a word document ?

Thanskkkxxxx
 

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