Quote:
Originally Posted by Jaffa
Hi
Can anyone help me write a macro that will find a specified name in a list of data?
Also a macro that will say if the specified name exsits in the list or not.
Hoping someone out there can help!
|
I can help you out. A few quick questions:
- how will the macro know where the list is? The easiest approach would be for you to select the cells that constitute "the list" and then run the macro.
- how will you tell the macro what name you want to find? Should the macro just ask?
- is the search for a single word, e.g., Jones or multiple words, e.g., John Johns? If the latter, are the first and last names in different cells?
- do you want the macro to care about upper vs lower case? If it does not care then JONES and Jones are the same.
- you state that you want the macro to tell you if the specified name is in the list or not; do you also want it to tell you if the name occurs more than once?
- assume that the name exists in the list, do you want the macro to select the appropriate list entry?