Change label if string contains a ComboBox Value

  • So I have a label that will depend on the value of ComboBox. If the Value of ComboBox contains a specific string then it'll execute a Match Index from the range that I specified.
    I managed to do what I wanted but the problem now is I want to clear the label if the ComboBox does not contain the string that I'm looking for. I tried to add an 'ElseIf' then put the caption to blank but after doing so, if I changed that value of ComboBox it will stay as blank.



    Anyone please?


    Thanks in advance,

  • Re: Change label if string contains a ComboBox Value


    It would be lot easier to understand and help you with the workbook.


    When you click reply there will be a new button labeled go advanced, click on that button then there will be a paperclip icon in the toolbar, click on that icon and follow the instructions.

    Bruce :cool:

  • Re: Change label if string contains a ComboBox Value


    Let me know if this is what you are looking for.


    Bruce :cool:

  • Re: Change label if string contains a ComboBox Value


    Hello Skywriter, you really are a life saver. That's exactly what I needed. Thank you so much.


    I could've sworn that I tried that too but for some reason the Captions stays blank.


    I did a little modification because I realized that I'll be adding more columns in the future and decided to store it in multidimensional array, now I'm back where I started. Could you please take a look which part am I missing? Thanks in advance


Participate now!

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