VBA to Search Webpage for Keyword

  • Hi all,

    Before I go to my question, I have to say I have no experience in coding. So, whatever I do is the result from search and asking.

    Let me explain my case. I have an excel file with multiple hyperlinks (they actually are the page of a protein database). What my goal is to check each of the pages if they contain some keywords and have them recorded on my excel file (see below screenshoot).

    So, for instance I want to know whether or not the Keywords on the headings M:T are present in each of the links. As I'm not experienced, the way I was trying to do it is by opening the webpage and copy the entire HTML, paste it into to the L column (by F2 and paste) and then the formulae for the keywords will search. I made the following (messy) code that does the job partially:

    The code works when I run it for one cell. But when I do the loop to run automatically to every link, it pastes only the last webpage's HTML (like skipping to paste the others in between no matter if I change the waiting time).

    I know that's a not appropriate way to do it but that's the only way I could anyway.

    Please, give me some advise/help as it drives me crazy!!!

    THanks in advance,


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!