Results 1 to 1 of 1

web scraping

Threaded View

midoan web scraping 11-24-2018, 08:00 AM
  1. #1
    Registered User
    Join Date
    11-24-2018
    Location
    Riyadh
    MS-Off Ver
    2007
    Posts
    1

    web scraping

    Hello,
    I need to do a macro when I type the site in a cell
    it extract a table from that site to the rest of the row
    and I need to do it repeatedly to the rest of the rows
    till now I can only do it to one row only and it is msgbox

    This is the code I used

       If Target.Row = Range("cellone").Row And Target.Column = Range("cellone").Column Then
       Dim IE As New InternetExplorer
       IE.Visible = True
       IE.navigate "" & Range("cellone").Value
       Do
       DoEvents
       Loop Until IE.readyState = READYSTATE_COMPLETE
       Dim doc As HTMLDocument
       Set doc = IE.document
       
       Dim sdd As String
       sdd = Trim(doc.getelementsbytagname("tr")(1).innerText)
       
       MsgBox sdd
       
       End If
    and I will attach the html code of the site...

    pastedImage.png
    Last edited by Leith Ross; 11-24-2018 at 08:46 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Web Scraping
    By CheekyMonkeh in forum Excel General
    Replies: 1
    Last Post: 10-15-2018, 02:43 PM
  2. Web Scraping using VBA
    By perpectuals in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2018, 03:08 PM
  3. Web scraping
    By vijay.jp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-02-2015, 12:56 AM
  4. Web Scraping
    By Thomo88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2014, 07:21 AM
  5. New to VBA - Web Scraping
    By cringle in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 12-17-2013, 08:26 AM
  6. Web Scraping
    By redkilner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-03-2013, 09:00 AM
  7. [SOLVED] Web scraping with xml
    By abousetta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2012, 05:25 AM

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