I'm new here so at the beginning hello to everyone <?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o> </o>
I have one problem with my EXCEL application. Earlier my application was written without VBA but now I’m trying to master my VBA skills and I’m rewriting everything. I don't now how to write this in VBA code:<o></o>
<o> </o>
For example in cell A1 a have this function<o></o>
<o> </o>
If(isnumber(search(B1;C1) );"you have a cat"; if(isnumber(search(B2;C1));"you have a dog";"you have something else"))<o></o>
<o> </o>
B1 = "cat"
B2 = "dog"
C1 = "long text with a word cat (or dog)" <o></o>
<o> </o>
This function should search for at least two different words in long text. The text will always contain word "dog" or "cat". All those words are of course only examples <o></o>
<o> </o>
A will by appreciate for any help<o></o>
<o> </o>
<o> </o>
I have one problem with my EXCEL application. Earlier my application was written without VBA but now I’m trying to master my VBA skills and I’m rewriting everything. I don't now how to write this in VBA code:<o></o>
<o> </o>
For example in cell A1 a have this function<o></o>
<o> </o>
If(isnumber(search(B1;C1) );"you have a cat"; if(isnumber(search(B2;C1));"you have a dog";"you have something else"))<o></o>
<o> </o>
B1 = "cat"
B2 = "dog"
C1 = "long text with a word cat (or dog)" <o></o>
<o> </o>
This function should search for at least two different words in long text. The text will always contain word "dog" or "cat". All those words are of course only examples <o></o>
<o> </o>
A will by appreciate for any help<o></o>
<o> </o>