Hello to all,
I had a similar problem to another member of this forum - see: http://www.excelforum.com/excel-gene...ml#post3574025
In brief, a solution was sought to:
Return multiple data for a partial or even complete search criteria - e.g. the solution I was looking for concerned an excel workbook I use with all my business contacts in it (see the attached .jpg - I can't upload the actual .xls as it is too large). As is often the case, you may only remember the contact you want to find by their family name, or the product that their company sells. However, there maybe many contacts with the same family name or companies in your list that sell the same product. The solution given by Popipipo in the thread I have linked this thread to allows ALL columns to be searched (albeit one at a time). Then just show all of the matches that it found and, finally, have a reset function that returned your entire list of contacts.
So why this thread?
Well, I downloaded Popipipo's solution and modified it as you can see in my attached .jpg (with respect to renaming columns and a few cosmetic changes that suited me). Usually the very helpful and generous of their time Contributors to this forum only produce a solution that is 'proof of concept.' To make it into a 'working' workbook such things as search ranges etc., often have to be changed.
Popipipo's .xls has the VBA code, I'm sure, where it should be which, unfortunately, is a mystery to me and, even if I were to find it I'm not that confident I could correctly modify the code to expand the search range to what I want.
In a secondary problem that I caused, I tried to move the very useful count feature to the same cell as the RESET button (by centering the count script to the bottom of the cell and moving the RESET button up so both fitted) however, things started going terribly wrong after doing that - the count stopped working and when I copied it back to its original cell it stopped working as it had been... meanwhile I'd looked for the VBA to change the range by using Alt+F11 and in playing around with the codes I happened upon (and even after returning these codes to their original state) I found I'd killed the search function altogether.
Could someone explain where to find the VBA code that controls the range and, once there, how to change it. As to the secondary problem, I know some formulas need to be nested by inputting them with Ctlr+Shift+Enter... and, I assume, that a formula cannot reside in the same cell as the RESET button(?)... in moving the formula back by copying and pasting, that is where I probably went wrong when, back where it started, it wouldn't work.
Many thanks,
Cupsay.
Bookmarks