You would need to understand the structure of the web pages involved. Page structures are defined by the Document Object Model. It is a hierarchical structure that allows programs to address the parts that make up the page.
Your page will include a form which will usually have a name but can also be referred to by an index number. In that form there will be fields similarly designated. There will also be buttons which have actions, like Submit.
Your code will have to find or open an instance of the browser then address the document via the DOM structure to write the name you are searching into the appropriate form field then click the button.
Then it needs to detect that the page is replaced by the result page and similarly work through that page structure to read the result from a particular "Div" which holds the result.
Right click on the page and select View Source to see the page structure.
Here is an example of VBA code to fill in a form on a website.
http://www.xtremevbtalk.com/showpost.php?p=973120