+ Reply to Thread
Results 1 to 4 of 4

How to get this code to update for new sites?

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    63

    How to get this code to update for new sites?

    Hi all!

    So I have this code that I picked from a tutorial and edited it to what I needed. My final goal is to have a spreadsheet which will have several sites for which this code will get the weather forecast for which the refresh button will update all simultaneously. I need help on how to loop the refresh, I pretty much understand how to get the other address for the sites but no idea how to loop it so it adds/updates more places in the spreadsheet. Any help is appreciated.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,620

    Re: How to get this code to update for new sites?

    For a Start:
    Please Login or Register  to view this content.
    Last edited by protonLeah; 06-19-2014 at 10:47 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    06-18-2014
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    63

    Re: How to get this code to update for new sites?

    Thank you so much protonLeah! That worked great! I'm going to study it and see what I can get out of it. This will definitely help me with my VBA.

  4. #4
    Registered User
    Join Date
    06-18-2014
    Location
    Houston, TX
    MS-Off Ver
    2010
    Posts
    63

    Re: How to get this code to update for new sites?

    If I wanted to get the from and to, latitude and longitude and temperature value and arrange it per column from a code that looks like so:

    HTML Code: 
    what would I have to change in my VBA? This is coming from this API
    http://api.yr.no/weatherapi/location...on=-95.3324395

    I tried giving it a go but it wont work. I am assuming it is because the values are inside the tags I also changed the cell() so that the counter Col would add the values downwards instead of to the right. Any input is very appreciated! I think once this is set up I will be done!
    Attached Files Attached Files

+ 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. VBA code to import data from different SITES
    By a1b2c3d4e5f6g7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-17-2014, 01:19 PM
  2. VBA code to import data from different SITES
    By a1b2c3d4e5f6g7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2014, 11:57 AM
  3. [SOLVED] VB Code help to change/update existing code
    By JDobbsy1987 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-24-2013, 04:46 PM
  4. I can't access some web sites
    By davesexcel in forum The Water Cooler
    Replies: 2
    Last Post: 11-19-2010, 05:41 AM
  5. [SOLVED] Template Web Sites
    By Scott Wagner in forum Excel General
    Replies: 2
    Last Post: 03-06-2006, 08:35 PM

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