+ Reply to Thread
Results 1 to 5 of 5

VBA code to import data from different SITES

  1. #1
    Forum Contributor
    Join Date
    11-06-2012
    Posts
    139

    VBA code to import data from different SITES

    Hello,

    I have a question about importing data's from different sites. I have to import names, functions and adresses from different sites.

    Is it possible to write a vba code to do this and import it directly to different colums?

    Thnx

    Columns in example
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: VBA code to import data from different SITES

    1) The easiest way would be to select "Data, Get External Data, From Web" then select the website.
    However this may not give you the intended result. As long as all the data is included in the import, you could manipulate it in Excel

    2) A more advanced method would be to use COM internet automation through VBA. This essentially involves reading the HTML code of a page and looping it to find the respective tags, values.. etc.

  3. #3
    Forum Contributor
    Join Date
    11-06-2012
    Posts
    139

    Re: VBA code to import data from different SITES

    The first method, iīm familiar with.

    But isnīt it so, that in the second method. The tags and values are mostly the same?

    Isn't their a way to write a code, that i only have the change the site names. And then import it directly in the different collumns, with the most common tags and values...?

  4. #4
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: VBA code to import data from different SITES

    HTML coding will be significantly different for each site, therefore the VBA has to be adjusted to suit.

    For example, on THIS website... Right click and select "view page source". That is the html code that you will be looping through to get the respective data.

  5. #5
    Forum Contributor
    Join Date
    11-06-2012
    Posts
    139

    Re: VBA code to import data from different SITES

    But ain't it possible.

    That you for example write a code that takes it from a site and puts it in the wright colums.
    And that i only have to adjust the variables, sites.

    It's mostly this site: http://www.netwerknotarissen.nl/mijn...is/medewerkers. And i need the information from the employes.
    But the company name differs.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Get data from multiple web sites using list of URLs
    By andparry in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-07-2013, 02:06 PM
  2. Automate Data Web Connections using list of source sites on another sheet
    By benasalisbury in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2012, 10:15 AM
  3. Sites for Data Analysts?
    By 4am in forum The Water Cooler
    Replies: 1
    Last Post: 03-25-2011, 11:56 AM
  4. daily pull down data from online sites
    By ChrisNor in forum Excel General
    Replies: 0
    Last Post: 03-27-2009, 05:11 AM
  5. Help on macro code - import *.CSV data from WEB
    By FerVerX in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-24-2008, 11:10 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