-
Solved: document_open or auto_open
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.
I've tried the following, but all I get is a beep.
[VBA]Private Sub Document_Open()
' Autoexec Macro
Selection.Find.ClearFormatting
With Selection.Find
.Text = ""
End With
'Selection.Find.Execute
Beep
End Sub[/VBA]
Please advise and thanks in advance,
Andrew
-
Try this.
[vba]
Option Explicit
Private Sub Document_Open()
Application.Dialogs(wdDialogEditFind).Show
End Sub
[/vba]
-
Whoa!
Thank you!
This is great!
-
You're Welcome
Take Care
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules