+ Reply to Thread
Results 1 to 2 of 2

Macro to search a website and return the value

  1. #1
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2019
    Posts
    756

    Macro to search a website and return the value

    Hello everyone,

    I am not sure whether this is possible, but I have a spreadsheet which analyses ANPR data. There are times where I will be trawling through 1000's of car registration numbers, looking for a specific make and model - ford focus for example.

    I was seeing whether it would be possible to create a Macro, which would search the car registrations in Column A via a website, so www.autocheck.co.uk for example and then in column B it would return the make and model of the car.

    Is this possible at all?


    Many thanks,


    Chris

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to search a website and return the value

    Hi Chris,
    I have tested it with my own car and seems to work with the first test, but If I use the same reg no, it returns an error.
    The other weird behavior I have noticed is if I type the reg no on the body of the code, it works fine, but as soon as I linked it to a cell, it complains.
    Ahm, I do not know if this behavior is to do with the erratic nature of IE, or there is a bug on my code.
    I am unable to use XML parsing as the site does not take me to next page after I entered the searched reg no. The page remains on the home page.
    Please try it by putting all valid reg nos on column A, starting from A2 and see if you get the right result.
    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. VBA Macro to Search a Website's Search-Box
    By unit285 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-06-2015, 02:35 PM
  2. Macro to lookup and return lowest product price from specific website
    By timmy1254 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2014, 12:02 AM
  3. Need macro to search sourcode of a website
    By freak11 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-18-2014, 06:27 PM
  4. Replies: 0
    Last Post: 10-16-2013, 10:58 AM
  5. [Help Needed] Macro Excel for Search in Website
    By sdas86 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-23-2012, 06:13 AM
  6. use excel info to search website and return web-result to excel
    By jmhan2209 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2012, 11:45 PM
  7. Replies: 0
    Last Post: 11-05-2009, 04:47 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