View Single Post
  #3 (permalink)  
Old 26th August 2009, 02:30 AM
That Guy
Newsgroup Contributor


My Top Tip Count:

 
Posts: n/a
Chats:
Default Re: Enter in word and search for a mark

------ Register to get rid of these "In Post" ads! ------


On Aug 23, 6:31*pm, Esgrimidor <Esgrimidor.3xe...@thecodecage.com>
wrote:
> 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.
>
> --
> Esgrimidor
> ------------------------------------------------------------------------
> Esgrimidor's Profile:http://www.thecodecage.com/forumz/members/esgrimidor.html
> View this thread:Enter in word and search for a mark


It would appear to me that you are asking for a macro that runs on
'Original Source: The Code Cage Forums http://www.thecodecage.com/forumz/word-vba-programming/127852-enter-word-search-mark.html#post464682
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
Reply to this post


Did you find this post helpful? Yes | No
The Code Cage Advertisment
Advertisement

To stop seeing these ads and get other benefits check This page!