Returning values from a built-in dialog

T

Theo van der Ster

Hi,

I'm trying to return values from the Replace dialog. I've done this
successfully with other dialogs but for the Replace dialog this somehow
doesn't work. Any ideas are welcome.

TIA,
Theo


With Dialogs(wdDialogEditReplace)
.Find = strSearch
.Show
strSearch = .Find
strReplace = .Replace
End With

MsgBox strSearch
MsgBox strReplace
 
T

Theo van der Ster

Klaus,

You're a genius! It works!

I'd never heard of the .Update possibility. Live and learn.

Thanks very much,
Theo
 

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