+ Reply to Thread
Results 1 to 10 of 10

Text String search from a web query to return a True/False Statement

  1. #1
    Registered User
    Join Date
    01-20-2013
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    5

    Text String search from a web query to return a True/False Statement

    Hi Everyone,

    Can you please help me with this small problem, generally I can find the answer to my question online but I have hit a brick wall with this one.

    I need to search for a predetermined text string off of a custimisable URL, for example,

    Column B has the URL paramater
    Column C needs to return a true or false answer if the word "frank" appears on the page.

    The text in column B is searched in Google and then on the first page if the word "frank" appears we are shown True, if there is no instances of the word "frank" needs to return the word false.

    I am completely stuck on this one and need help!

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Text String search from a web query to return a True/False Statement

    This will search the words in Column C in Google and return the True/False value in Column D.

    Please Login or Register  to view this content.
    abousetta
    Last edited by abousetta; 01-21-2013 at 01:30 AM.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    01-20-2013
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Text String search from a web query to return a True/False Statement

    Thanks abousetta,

    Unfortunately I get an error with your code, complie error Variable not defined it then highlights the first instance of the word Row in line 3.

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Text String search from a web query to return a True/False Statement

    Sorry, it should be rows not row. I updated it.

    abousetta

  5. #5
    Registered User
    Join Date
    01-20-2013
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Text String search from a web query to return a True/False Statement

    Thank you for your patients with me,

    I now get the error

    Run-time error '1004':
    Application-defined or object-defined error

    apologies, VBA and Macros are not my strong point!

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Text String search from a web query to return a True/False Statement

    No problem. Updated.

    abousetta

  7. #7
    Registered User
    Join Date
    01-20-2013
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Text String search from a web query to return a True/False Statement

    I really appreciate your help with this! Your a lot closer then was, using .iqy file queries!

    with the updated code I get

    Run-time error '13':
    Type mismatch

    Nothing highlights when I acknowledge the error.

  8. #8
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Text String search from a web query to return a True/False Statement

    Sorry, I didn't have a chance to test the final version. I just tested and amended the code above.

  9. #9
    Registered User
    Join Date
    01-20-2013
    Location
    Perth
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Text String search from a web query to return a True/False Statement

    YOU DID IT!!!

    Thank you thank you thank you!

  10. #10
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Text String search from a web query to return a True/False Statement

    Glad you are happy with the he results.

    abousetta

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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