A family of Microsoft word processing software products for creating web, email, and print documents.
Try
With Application.Dialogs(wdDialogEditReplace)
SendKeys "%m"
.Find = "this"
.Replace = "that"
.Show
End With
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am doing some routine replaces that need to be examined rather than have replace all run. I would like my macro to set the find and replace variables and "Find Next" with the dialog box displayed, then stop to let the user handle it.
I'm using:
application.Dialogs(wdDialogEditReplace).Show
That doesn't seem to display the expanded box. Is there a command that displays the box as if the More button had been pressed?
A family of Microsoft word processing software products for creating web, email, and print documents.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Try
With Application.Dialogs(wdDialogEditReplace)
SendKeys "%m"
.Find = "this"
.Replace = "that"
.Show
End With