Results 1 to 20 of 98

Thread: Solved: Search engine

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #30
    Moderator VBAX Guru Ken Puls's Avatar
    Joined
    Aug 2004
    Location
    Nanaimo, BC, Canada
    Posts
    4,001
    Location
    Hi Airborne,

    Quote Originally Posted by Airborne
    Hi, talked to the IT guys. Excel was damaged on three IT pc's. After a repair.....everything worked. A steady screen and a working bar .
    Excellent! One issue down, at least!

    Quote Originally Posted by Airborne
    Windows search doesn't open the files but just shows the files in the search window containing the hits. You can open them yourself. Is it not possible that Ken's routine not opens the files but just shows them in an extra page of my Data.xlt workbook. As you know it contains the "data" and "stock" sheet and I can also add a "search" sheet. The workbook contains Ken's routine and other routines (one to copy/paste the two sheets in a new workbook giving it the name Datadd-mm-yyyy.xls (containing no macro's) storing it in year\etc. We then close the Data workbook again.
    Hmmm... The problem that I see here is that with the data stored in textboxes, I can't find a way to access the various files without opening them. If you were to throw a Workbook_BeforeSave event in the template (that creates all of your data files) to copy all the textbox info to cells on a separate sheet ("search" as referred to above) I think that we could adapt Joseph Rubin's idea here. Even that would be some work, though, as the methodology for this would be to create a link to a sheet in your main workbook from each cell in the search sheet of every file in the directory. You're still talking about setting up a loop to talk to each file in the directory though. Having never used Mr. Rubin's method before, I can't guarantee that it would even be any faster...

    It may be possible to just launch windows search utility right from Excel (I'm not sure what to call to do this though), but does it search textboxes within the file? I'm not sure...

    PS: MD, I think that the only lines of code that aren't 2000 compliant are the lines calling .ShowWindowsInTaskbar (That one was definately added in 2003). I think that the rest of the code should be backwards compatible.
    Last edited by Ken Puls; 11-11-2004 at 12:10 AM. Reason: Added note re .ShowWindowsInTaskbar
    Ken Puls, CMA - Microsoft MVP (Excel)
    I hate it when my computer does what I tell it to, and not what I want it to.

    Learn how to use our KB tags! -||- Ken's Excel Website -||- Ken's Excel Forums -||- My Blog -||- Excel Training Calendar

    This is a shameless plug for my new book "RibbonX - Customizing the Office 2007 Ribbon". Find out more about it here!

    Help keep VBAX clean! Use the 'Thread Tools' menu to mark your own threads solved!





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •