PDA

View Full Version : Solved: document_open or auto_open



SerenityNet
02-09-2005, 08:30 PM
I have a Word document. When the document is opened then I would like the "Find" dialog to be automatically opened, as in the screen-shot below.

http://www.serenitynetworks.net/tossme/find.jpg

I've tried the following, but all I get is a beep. :banghead:

Private Sub Document_Open()
' Autoexec Macro
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
End With
'Selection.Find.Execute
Beep
End Sub

Please advise and thanks in advance,
Andrew

Jacob Hilderbrand
02-09-2005, 08:36 PM
Try this.

Option Explicit

Private Sub Document_Open()

Application.Dialogs(wdDialogEditFind).Show

End Sub

SerenityNet
02-09-2005, 09:24 PM
Whoa!

Thank you!

This is great! :thumb

Jacob Hilderbrand
02-09-2005, 09:27 PM
You're Welcome :beerchug:

Take Care