Adding the "Find" command my Macro

  • Thread starter Carl Kirsch, Atlanta
  • Start date
C

Carl Kirsch, Atlanta

I know how to record a macro and assign it to my keyboard. I have a keyboard
macro called "Alt-R". When I recorded it, I asked it to open a Word document
and to open the "Find" dialogue box that I opened during creation by clicking
on "Find" in the Home Tab. Thereafter, I stopped record in macro. However,
Alt-R opens the document, but does not display the Find dialogue as expected.
I obviously need to add a command line in the macro to open the Find dialogue
box. How do I do that in Word 2007? (In WordPerfect, the commands are in a
dialogue box and you can edit your macro to select a particular command, like
Find, and it will insert the command in the macro, whereupon you save it and
performs like a charm. I need to do the same thing in Word 2007.)
 
G

Graham Mayor

The macro recorder has a number of limitations. This is one of them :)

Documents.Open "D:\Path\docname.doc"
Dialogs(wdDialogEditFind).Show

should do the trick


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


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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