andyandy12345
New Member
- Joined
- Feb 26, 2011
- Messages
- 11
Hi, new to using excel VBA and struggling...
Is there a VBA equivalent to this formula?
=IF(ISNUMBER(FIND("mytext",A3, 1)),"good","bad")
I have defined a range in VBA and need to create a VB module to do check the range for certain text and based on the result output the true or false information to an offsett column on the same row.
I have, now, worked out that the boolean ISNUMERIC() function will report false if there is not a number in the range being checked and am struggling to work out what i need to do.
I have been using the FIND() to look for "mytext" and xlpart, matchcase:=0 etc but cannot combine the boolean logic test with the text lookup.
Please help and show how simple it is if you understand what you are doing...
Thank you in advance
Is there a VBA equivalent to this formula?
=IF(ISNUMBER(FIND("mytext",A3, 1)),"good","bad")
I have defined a range in VBA and need to create a VB module to do check the range for certain text and based on the result output the true or false information to an offsett column on the same row.
I have, now, worked out that the boolean ISNUMERIC() function will report false if there is not a number in the range being checked and am struggling to work out what i need to do.
I have been using the FIND() to look for "mytext" and xlpart, matchcase:=0 etc but cannot combine the boolean logic test with the text lookup.
Please help and show how simple it is if you understand what you are doing...
Thank you in advance