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
 
Top