+ Reply to Thread
Results 1 to 7 of 7

Search result extraction macro

  1. #1
    Forum Contributor
    Join Date
    02-14-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    128

    Search result extraction macro

    Hi All,

    Looking for experts help since am new to excel VBA.

    I have a Google results extraction macro which I got this from Google. The macro extracts first result hyperlink and the paragraph. I need a macro that extracts the header of the results.

    For Ex: When we key in Wiki in google, this macro extracts "https://en.wikipedia.org/wiki/Wiki" and "A wiki is a website that provides collaborative modification of its content and structure directly from the web browser. In a typical wiki, text is written using a ..."

    I need the header "Wiki - Wikipedia"

    Attached the macro fyi.

    Thanks in advance..!
    Attached Files Attached Files
    Last edited by Manikandan Arumugam; 03-29-2017 at 04:43 AM. Reason: Attachment
    Manikandan Arumugam
    Excel Learner

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Search result extraction macro

    objIE.document.Title
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Forum Contributor
    Join Date
    02-14-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    128

    Re: Search result extraction macro

    Hi Sean Thomas,

    Thanks for the reply. I dont have scripting experience. It will be needful if help me so

  4. #4
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Search result extraction macro

    Where do you want the title to be placed and on what sheet?

  5. #5
    Forum Contributor
    Join Date
    02-14-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    128

    Re: Search result extraction macro

    In Same sheet. The exisiting macro extracts paragraph with hyperlink. I need the title in next column

  6. #6
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Search result extraction macro

    try adding this line into your code

    I cant test it because your code doesn't work as certain items are missing from your worksheets
    also I don't know what you are looking for on google or what is expected.
    I'm taking it that only one result is found and TargetItemsQty = 1 so it ends the loop
    in which case we can put the result in the next column

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    02-14-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    128

    Re: Search result extraction macro

    Sean,

    It seems Ur code doesn't extract the results i expected. Sorry, if i have not explained clearly.Attached the new sheet with input/output and screenshot for reference.
    Attached Images Attached Images
    Attached Files Attached Files

+ 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. Google result header extraction
    By Manikandan Arumugam in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-27-2017, 03:30 AM
  2. Data Search/Comparison and Extraction (VB Macro)
    By reachspk123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-16-2015, 05:04 AM
  3. VBA Code - Search text & search number & search qty and result - Urgent Please
    By naresh73 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-15-2014, 10:51 AM
  4. Macro to Search for Error Message and Display solution result.
    By Ally1982 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2014, 12:22 PM
  5. Need a Macro for automated search result.
    By pari9485 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2013, 08:03 PM
  6. Macro using outside applications (esp. search result using a web browser)
    By kitpierce in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2013, 10:37 AM
  7. Create Macro to import first Google Search result
    By aolo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-29-2012, 07:54 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