Create "Search" button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been charged with creating a simple file that holds standard responses
to questions. I have set up a table in Word with this information. Is it
possible to have a "button" at the top of the document that once clicked
executes the "Find" command? The end users are not techologically savvy and
the intent is to make this easy to use and easy to maintain.

Thank you.
 
You can certainly add a toolbar button to open the Find dialog, if your
users are too clueless to use Ctrl+F. In the Tools | Customize dialog
(Commands tab), select the Edit category, scroll down to Find, and drag it
to a toolbar.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Yes, you can have a "button" right on your form
Open your control toolbox toolbar, then select "command Button", place this
button where you want it on your form, select the picture you want - or just
use the text Find - then while still in the design mode, click on view code
(this will take you to Visual Basic. Type the code you want or you may use
this one
Private Sub CommandButton1_Click()
Application.Run MacroName:="EditFind"
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
End Sub

Go back to your form, unclick design mode and then click your find button -
the find and replace command should pop right up

Hope that helped!!
 

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

Back
Top