The Code Cage - Microsoft Office help Free Microsoft Office Help for all Applications!  

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

Go Back   The Code Cage Forums > Newsgroups - Microsoft Topics > Newsgroup - Word Forum > Word VBA Programming
  Microsoft Office Chat Online now!


Word VBA Programming Post questions in this forum if they are related to using Microsoft Word VBA Programming, Macro's etc.

Hey there!

It looks like you're enjoying but haven't created an account yet. Why not take a minute to register for your own free account now? As a member you get free access to all of our forums and posts plus the ability to post your own messages, communicate directly with other members and much more. Register now!

Already a member? Login at the top of this page to stop seeing this message.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23rd August 2009, 11:31 PM
Junior Member
MS Office Version: Office 2002
MS Office Skill Level: New


My Top Tip Count: 0

 
Join Date: Aug 2009
Location: Canary Islands
Posts: 2
Thanks to others: 0
Thanked 0 Times in 0 Posts
Chats: 0
Rep Power: 0
Esgrimidor is on a distinguished road
Default Enter in word and search for a mark

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


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.
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!
  #2 (permalink)  
Old 24th August 2009, 08:45 AM
Graham Mayor
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! ------


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

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
'Original Source: The Code Cage Forums http://www.thecodecage.com/forumz/word-vba-programming/127852-enter-word-search-mark.html#post462500

Esgrimidor 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.



Reply to this post


Did you find this post helpful? Yes | No
  #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!
  #4 (permalink)  
Old 29th August 2009, 11:25 AM
Junior Member
MS Office Version: Office 2002
MS Office Skill Level: New


My Top Tip Count: 0

 
Join Date: Aug 2009
Location: Canary Islands
Posts: 2
Thanks to others: 0
Thanked 0 Times in 0 Posts
Chats: 0
Rep Power: 0
Esgrimidor is on a distinguished road
Default Re: Enter in word and search for a mark

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


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
'Original Source: The Code Cage Forums http://www.thecodecage.com/forumz/word-vba-programming/127852-enter-word-search-mark.html#post469149

%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
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!
Reply

Bookmarks

Tags
enter, mark, search, word


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

The Code Cage Affilliates


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



All times are GMT +1. The time now is 03:45 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2
No part of this board may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application the represent