Combobox.Value in Range do else

  • Hello


    Sorry, if the title of this thread is not accurate.


    I have the following code:


    What I am trying to do is check if the value of the combobox equals the same as any of the Range MMod, and then find that Value in the Range and pass the value next to it to a textbox, - that bit works, however if the value of the combobox is not in Range MMod, then I want the textbox value to be "Zero".



    If I put:

    Code
    else: textbox1.value = "Zero"


    before NextMFind I always return "Zero"


    What am I doing wrong please?

  • Re: Combobox.Value in Range do else


    Maybe try using a Boolean to check if a value matches...once a value matches the "Flag" = True So if the "Flag" = False then you know that no value was found.....


    Matt Mickle
    Using Excel 2010,2013 & 2016

  • Re: Combobox.Value in Range do else


    Perhaps.

    Boo!:yikes:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!