Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default Showing Search results in msgbox?

I have links to a batch of Word files in my spreadsheet. I'm trying to
create a macro that will let my users use the OpenToolsFind search
function to search all the files for documents containing certain words or
phrases. My only problem is that I can't figure out how to save the search
results in a string to show in a message box when the search is complete.
(There's reasons why I would prefer to do the message box rather than giving
them the Open Files window, if it's possible.)

Any suggestions are appreciated.
Ed


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 194
Default Showing Search results in msgbox?

Thank you, Tom!

Ed

"Tom Ogilvy" wrote in message
...
Use the filesearch object.

this returns .FoundFiles

you can then do

for i = 1 to .Foundfiles.count
msgbox .foundFiles(i)
Next

There is a good code example in the Excel VBA help files.

--
Regards,
Tom Ogilvy

"Ed" wrote in message
...
I have links to a batch of Word files in my spreadsheet. I'm trying to
create a macro that will let my users use the OpenToolsFind search
function to search all the files for documents containing certain words

or
phrases. My only problem is that I can't figure out how to save the

search
results in a string to show in a message box when the search is

complete.
(There's reasons why I would prefer to do the message box rather than

giving
them the Open Files window, if it's possible.)

Any suggestions are appreciated.
Ed






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search formula showing results plus 100 characters Deb Excel Discussion (Misc queries) 2 January 7th 10 09:51 PM
IF formula only showing positive results Davidm Excel Discussion (Misc queries) 2 August 19th 08 05:17 AM
Showing results in cell using formulas Jonathan Excel Discussion (Misc queries) 1 December 10th 07 06:29 PM
Formulas not showing results sonar Excel Worksheet Functions 2 August 31st 05 04:07 PM
MsgBox with condition and showing details viddom Excel Worksheet Functions 2 August 17th 05 12:38 PM


All times are GMT +1. The time now is 11:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"