Complex Cell Formatting based on web data presence

el1te

New Member
Joined
Apr 13, 2012
Messages
4
Basically I want to somehow derive a function that visits the website below and if table 2 is present, cell A1 is red whereas if a table 2 is not present Cell A1 does not change colour

http://www.investegate.co.uk/Advance...qsContains=rkh

A table is only present when news for the company is available.

Would really appreciate some help with this.

Thanks alot​
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Maybe:
Code:
Public Sub Test()
With CreateObject("MSXML2.XMLHTTP")
    .Open "GET", "http://www.investegate.co.uk/AdvancedSearch.aspx?qsArticleType=ann&qsSearchFor=S2&qsSpan=1D&qsContains=rkh"
    .send
    If (UBound(Split(.responsetext, "announcementList"))) > 0 Then
        Sheet1.Cells(1, 1).Interior.Color = RGB(255, 0, 0)
    Else
        Sheet1.Cells(1, 1).Interior.Color = RGB(0, 0, 0)
    End If
    .abort
End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,759
Messages
6,057,191
Members
444,913
Latest member
ILGSE

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top