Hi all
I am very stuck. Here's what I am trying to do:
- Sheet1 Cell D4 has a drop down list containing names.
- I need a macro to search through Sheet2 column D for that name
- IF found, then take some action (I have written code for this)
- ELSE (ie. if not found) do nothing.
I am a VBA beginner and can usually rely on searching this site to find something similar to what I require and tweak it to my needs. However, on this occasion I have searched and searched for an answer, but I always end up with code that LOOPS through all rows looking for the search string, and takes action for each row found. I don't know how to "remove" the LOOPS and just do it once, it always seems to ruin the code.
I just need the macro to find one instance in column D in order to take some action, no looping.
Any help would be greatly appreciated!
I am very stuck. Here's what I am trying to do:
- Sheet1 Cell D4 has a drop down list containing names.
- I need a macro to search through Sheet2 column D for that name
- IF found, then take some action (I have written code for this)
- ELSE (ie. if not found) do nothing.
I am a VBA beginner and can usually rely on searching this site to find something similar to what I require and tweak it to my needs. However, on this occasion I have searched and searched for an answer, but I always end up with code that LOOPS through all rows looking for the search string, and takes action for each row found. I don't know how to "remove" the LOOPS and just do it once, it always seems to ruin the code.
I just need the macro to find one instance in column D in order to take some action, no looping.
Any help would be greatly appreciated!