+ Reply to Thread
Results 1 to 5 of 5

Macro to Look up URL and Check for data on Page

  1. #1
    Registered User
    Join Date
    02-02-2010
    Location
    Wellington
    MS-Off Ver
    Excel 2007
    Posts
    8

    Macro to Look up URL and Check for data on Page

    Hi,

    I don't know if this is even possible. .my employer is making me check the attached spreadsheet (over 150 Lines) to confirm that the prices in it are accurate. I need to do this daily.

    This means I need to paste in the URL (supplied in Spreadsheet) and then see if I can find the last price (Column H) and Effective Date: (Column I) on the webpage URL supplied. If they match it means that our prices are accurate (I add a Comment similar to "Price Ok"), if I can't find a match, then I need to investigate further.

    This task is really tedious, and take me about 3-4 hours each day.. I want to see if I can find an easier way to do it. So I want to see if the following is possible:

    Is it possible to create a Macro that does the following:
    1.Copies the URL
    2. Pastes Into Browser
    3. Then uses "Find" function to see if there is a Match on the webpage for the entries in Column H AND I
    4a. If there is a Match, prints "Ok - Price Confirmed on Website" into Column L (end column)
    4b. If there is NO Match Prints "Sorry Ed you need to do some more work!" into Column L (end column)

    If I could get it to do this, it would make this task bearable.

    I was thinking of trying to do this myself, but wanted to get some advice to see if it would likely be too hard..I have little macro experience..am I dreaming? Or perhaps I should pay someone to do it?

    Any suggestions/advise would be greatly appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Macro to Look up URL and Check for data on Page

    Hello treewx,

    Columns "H" and "I" on which worksheet?
    What are they it being matched to?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    02-02-2010
    Location
    Wellington
    MS-Off Ver
    Excel 2007
    Posts
    8

    Smile Re: Macro to Look up URL and Check for data on Page

    As an example here is the top line:

    Column H (Exit Price) is: 0.6875
    Column I (Effective Date) is: 13/01/2011 0:00
    Column K (URL where prices are found for this fund): https://online.btfunds.com.au/retail...mium_Cash_Fund

    Macro would Take 0.6875 and see if it could find that number in th page above.
    Then would Take 13/01/2011 and see if it could find that in page above.

    If it found both these on the page, it would print "Ok- Pirces Match" in Column L.

    Hope that's clear...
    Note: most of these prices will be out of date now as the webpage will have updated.

    Cheers

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Macro to Look up URL and Check for data on Page

    Hello treewx,

    Right then. Seems a bit quirky but if that's how it is to be done then the answer to your question is "It is doable." It will take me some time to get this working right. Possibly a few hours.

  5. #5
    Registered User
    Join Date
    02-02-2010
    Location
    Wellington
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Macro to Look up URL and Check for data on Page

    Oh don't worry if it's gonna take that long, don't want to take up your time.

    A bit quirky?? Do you think they would be an easier way to do it??

    Thanks Ed

+ 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