+ Reply to Thread
Results 1 to 5 of 5

find text in string for multiple rows

  1. #1
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    93

    find text in string for multiple rows

    Hi Team,
    I have a attached problem where i have to find the test in a string and based on it i have to execute if statement. i have done in excel but can not execute in vba.

    please do let me what is wrong with the code. attached is the file for your reference.


    Sub test()


    Dim I As Integer

    a = Sheets(1).Range("A" & Rows.Count).End(xlUp).Row

    For p = 1 To a Step 1

    application.WorksheetFunction.if.ISNUMBER(SEARCH("C",cells(p,3).value)= "TRUE" Then

    MsgBox "correct"

    End If
    Next

    End Sub
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: find text in string for multiple rows

    Try

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    93

    Re: find text in string for multiple rows

    Thanks alot leo...
    can we do same with Isnumber and search formula ?

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: find text in string for multiple rows

    maybe
    maybe not

    Cheers
    Leo

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,535

    Re: find text in string for multiple rows

    @Merrysa
    Refresh your memory and read the Forum Rules again. #3 Should be of interest to you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Find One of Multiple options from Text String
    By mrhdw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-27-2015, 07:43 PM
  2. [SOLVED] Find matching text string and copy values from 5-rows below it.
    By javeds in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-29-2014, 03:06 PM
  3. [SOLVED] Find partial text string within another text string return original text into cell.
    By mikey42979 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-17-2013, 02:58 PM
  4. Find Text String across Multiple Workbooks
    By craigos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2013, 05:18 AM
  5. How to find a text string and then copy the next 5 rows to a new sheet
    By jmorisey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-16-2013, 03:32 PM
  6. [SOLVED] Find text between 2 characters with multiple instances in a single string
    By mforbes6186 in forum Excel General
    Replies: 3
    Last Post: 02-09-2013, 11:56 AM
  7. Find and Replace Multiple Text String VBA
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-28-2011, 11:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1