+ Reply to Thread
Results 1 to 4 of 4

Problem with search code

  1. #1
    Registered User
    Join Date
    02-18-2011
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    6

    Problem with search code

    Hey guys,
    I have created a search field in the top of my excel spreadsheet with a list of a couple hundred names.

    I created the search function and it all works great. Only problem I have is that I have to enter the value that is being searched for in the macro. So I put in a textbox next to the search button. So someone who searches can just enter the name in the box, hit the search button, thereby run the macro and then search the document. For some reason I can't seem to get it to work to take the value from the textbox to search though.

    What am I doing wrong? can anyone help?

    Thanks,
    Alex

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Problem with search code

    hi Alex,
    try this
    Please Login or Register  to view this content.
    john

  3. #3
    Registered User
    Join Date
    02-18-2011
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Problem with search code

    Hey John,
    thanks a lot for the code. I've been playing with it for a bit trying to adjust it so it works for me.

    However I keep getting the same error message saying Sub or Function not defined.

    Any thoughts?

    thanks,
    alex

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,060

    Re: Problem with search code

    hi alex,
    i use it and it works fine. sure u need to adjust it for yr needs.
    john
    Attached Files Attached Files

+ 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