ret1

  1. J

    XML Http request into Excel

    So for this website: https://www.tesco.com/groceries/en-GB/products/268279288 The following code pulls the Price/price per unit etc. Private Function getprices(ByVal URL As String) As Variant Dim source As Object Dim http As New XMLHTTP60, html As New HTMLDocument Dim ret(1 To 5) As String Dim...
  2. J

    On Error, is skipping, but not posting next in correct row

    If one of the ret(1), ret(2), ret(3) is not found it skips it, but it pastes the next one in that row, rather than skipping; any ideas how to alter the code to achieve this please? Thanks. Option Explicit Sub Get_Prices() Dim Lastrow As Long Dim LastRow2 As Long Dim x...
  3. J

    Understanding class or attribute in html

    Hello, Bit of a novice on pulling data from the web. The 3 lines in bold below work. But when I try to pull another element, ret(4), the code isn't working. How do I work out whether it is a class or attribute? Many thanks. Private Function getprices(ByVal URL As String) As Variant...

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