+ Reply to Thread
Results 1 to 4 of 4

workbook search stoped working

  1. #1
    Forum Contributor
    Join Date
    06-01-2009
    Location
    Cincinatti,Ohio
    MS-Off Ver
    Excel 2003
    Posts
    122

    workbook search stoped working

    I thought I had this working for me but I think I made a change some where that is messing it up. Also my workbook is getting so big that it is getting harder to test each piece. and as I don't exactly understand the "with" command I am hoping that someone can look at this real quick and see where I messed up. so here is the code:
    Please Login or Register  to view this content.
    The problem is that when it doesn't find a match on the first worksheet it looks at, it then calls the sub program "NoDatabasePart" before searching the rest of the workbook. Please if you have a suggestion let me know and I will try it.
    Thank you very much for your time.
    Last edited by TheNewGuy; 08-11-2009 at 02:53 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: workbook search stoped working

    What is Me supposed to refer to?

    More generally, what is the code supposed to do?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    06-01-2009
    Location
    Cincinatti,Ohio
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: workbook search stoped working

    What is Me supposed to refer to?
    I think the .ME refers to the worksheet that matches the rFind.
    More generally, what is the code supposed to do?
    The code is supposed to open a workbook then search each worksheet in that workbook for a match located in column A. And the value I am trying to find a match for is located in TEXTBOX14.
    I really hacked this code together, but I thought I had it working,....but I guess not.

  4. #4
    Forum Contributor
    Join Date
    06-01-2009
    Location
    Cincinatti,Ohio
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: workbook search stoped working

    I believe I may have fixed it. The offending line of code seems to have been the else:call nodatabasepart
    Please Login or Register  to view this content.
    so I guess I got it but.....we'll see!
    Also, you were right I did not need the .ME part of the code.
    Thanks again for all your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1