Enter in word and search for a mark

E

Esgrimidor

Enter in word and search for a mark

I would like a VB script to execute from Start - Execute for open
word document by a chapter, mark or any other symbol.

Thanksss

This is my first post. Best Regard to all forumers
 
G

Graham Mayor

If you were to explain *exactly* what you mean, I am sure someone could help
you.

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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
T

That Guy

Enter in word and search for a mark

I would like a VB script to execute from Start - Execute for open a
word document by a chapter, mark or any other symbol.

Thanksss

This is my first post. Best Regard to all forumers.

It would appear to me that you are asking for a macro that runs on
document open and then finds a specific value? Like a chapter title or
a symbol?

in the VB editor under this document:

Private Sub Document_Open()
Dim temp As String

temp = InputBox("please enter the starting point:", "No Title")

If Len(temp) > 0 Then
Selection.Find.Execute temp
End If

End Sub

This will bring you to the first instance of whatever you type in the
input box.

Hope that helps
 
E

Esgrimidor

I'm going to try inmediately.

I have tried with good result a bat with the content :

"%ProgramFiles%\Microsoft Office\Office10\WINWORD.EXE" /t
"Y:\GABINETE\PROYECTOS\%xvar%\%xvar%.Proyecto. doc" /mmacro3

%xvar%= 125.09

I think your idea is a perfect complement to go a part of the document
in general entering in word and executing a script after doing.

I will try and comment. I don't know at the present how to include your
script as a macro, but I have observed that the macro is editable with
the visual basic editor and the content for the macro3 is :


Sub Macro3()
'
' Macro3 Macro
' Macro grabada el 26/08/2009 por JPR
'
Selection.GoTo What:=wdGoToBookmark,
Name:="LineaDerivacionIndividual"
With ActiveDocument.Bookmarks
DefaultSorting = wdSortByName
ShowHidden = False
End With
End Sub

So, I can learn and try.

thanksxxx again
 

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