Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

Returning values from a built-in dialog

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Theo van der Ster - 24 Feb 2005 23:29 GMT
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
Klaus Linke - 25 Feb 2005 16:05 GMT
Hi Theo,

Does an .Update after the .Show fix it?

Regards,
Klaus

> Hi,
>
[quoted text clipped - 14 lines]
> MsgBox strSearch
> MsgBox strReplace
Theo van der Ster - 25 Feb 2005 23:13 GMT
Klaus,

You're a genius! It works!

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

Thanks very much,
Theo

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.