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)),"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 result to an offsett column on the same row eg offset(0, 25)
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 the alternative to the worksheet functions are
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)),"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 result to an offsett column on the same row eg offset(0, 25)
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 the alternative to the worksheet functions are
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